From 7f5d914898c9d05942705ce7d80c0d14a8174df8 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 19 十二月 2023 15:57:14 +0800
Subject: [PATCH] 1、common模块优化代码; 2、通信中间件优化代码,队列遍历由递归调用改为while循环,原因是队列数据量大时递归调易产生栈溢出,HashTable多线程应用时仍有线程安全问题,改为HashMap+同步锁; 3、RTU模拟器和模拟器控制服务增加report命令

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SeRechargeMapper.java |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SeRechargeMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SeRechargeMapper.java
index 44cd6dc..800666b 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SeRechargeMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SeRechargeMapper.java
@@ -1,13 +1,18 @@
 package com.dy.pipIrrGlobal.daoSe;
 
 import com.dy.pipIrrGlobal.pojoSe.SeRecharge;
-import com.dy.pipIrrGlobal.pojoSe.VoRecharge;
-import org.apache.ibatis.annotations.Mapper;
+import com.dy.pipIrrGlobal.voSe.VoRecharge;
+import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
 import java.util.Map;
 
-@Mapper
+/**
+ * @author ZhuBaoMin
+ * @date 2023/12/8 15:25
+ * @LastEditTime 2023/12/8 15:25
+ * @Description
+ */
 public interface SeRechargeMapper {
     int deleteByPrimaryKey(Long id);
 
@@ -15,7 +20,7 @@
 
     int insertSelective(SeRecharge record);
 
-    //SeRecharge selectByPrimaryKey(Long id);
+    SeRecharge selectByPrimaryKey(Long id);
 
     int updateByPrimaryKeySelective(SeRecharge record);
 
@@ -24,4 +29,11 @@
     Long getRecordCount(Map<?, ?> params);
 
     List<VoRecharge> getRecharges(Map<?, ?> params);
+
+    /**
+     * 鏍规嵁姘村崱缂栧彿鍒犻櫎鍏呭�艰褰�
+     * @param cardId
+     * @return
+     */
+    Integer deleteByCardId(@Param("cardId") Long cardId);
 }
\ No newline at end of file

--
Gitblit v1.8.0