From 836ec39fdad422b1a148699a4c5fb8c5b4d395f0 Mon Sep 17 00:00:00 2001
From: zuoxiao <lf_zuo@163.com>
Date: 星期三, 25 六月 2025 11:04:33 +0800
Subject: [PATCH] feat(card): 添加管理类型卡写卡功能并优化卡片相关逻辑- 在 OperateTypeENUM 中添加 SUPPLEMENT 和 MANAGEMENT_CARD_WRITE 枚举值 - 在 SeManagementCard 中添加 cancelTime 和 state 字段 - 更新相关 mapper 和 XML 文件以支持新增字段 - 修改 CardSv 中的回调处理逻辑,支持管理类型卡写卡 - 优化 CreateManagementCardDto 中识别码的示例值
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoPr/PrIntakeControllerMapper.java | 69 ++++++++++++++++++++++++++++++++++
1 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoPr/PrIntakeControllerMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoPr/PrIntakeControllerMapper.java
new file mode 100644
index 0000000..d3a4f83
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoPr/PrIntakeControllerMapper.java
@@ -0,0 +1,69 @@
+package com.dy.pipIrrGlobal.daoPr;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.dy.pipIrrGlobal.pojoPr.PrIntakeController;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author ZhuBaoMin
+ * @date 2024-01-02 9:16
+ * @LastEditTime 2024-01-02 9:16
+ * @Description
+ */
+
+@Mapper
+public interface PrIntakeControllerMapper extends BaseMapper<PrIntakeController> {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(PrIntakeController record);
+
+ int insertSelective(PrIntakeController record);
+
+ PrIntakeController selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(PrIntakeController record);
+
+ int updateByPrimaryKey(PrIntakeController record);
+
+ /**
+ * 鏍规嵁鍙栨按鍙g紪鍙枫�佹帶鍒跺櫒缂栧彿銆佹搷浣滅被鍒幏鍙栬褰曟暟閲�
+ * 閲嶅缁戝畾銆侀噸澶嶈В缁戦兘鐢ㄨ鏂规硶鍒ゆ柇
+ * @param intakeId 鍙栨按鍙D
+ * @param controllerId 鎺у埗鍣↖D
+ * @param operateType 鎿嶄綔绫诲瀷 1-鎹嗙粦锛�2-瑙g粦
+ * @return 濡備綍鏉′欢璁板綍鏁�
+ */
+ Integer getBindRecordCount(@Param("intakeId") Long intakeId, @Param("controllerId") Long controllerId, @Param("operateType") Byte operateType);
+
+ /**
+ * 鏍规嵁鍙栨按鍙g紪鍙疯幏鍙栫粦瀹氳褰曞垪琛�
+ * @param intakeId 鍙栨按鍙g紪鍙�
+ * @return 鍙栨按鍙d笌鎺у埗鍣ㄧ粦瀹氬垪琛�
+ */
+ List<Map<String, Object>> getBindsByIntakeId(@Param("intakeId") Long intakeId);
+
+ /**
+ * 鏍规嵁鎺у埗鍣ㄧ紪鍙疯幏鍙栫粦瀹氳褰曞垪琛�
+ * @param controllerId 鎺у埗鍣ㄧ紪鍙�
+ * @return 鍙栨按鍙d笌鎺у埗鍣ㄧ粦瀹氬垪琛�
+ */
+ List<Map<String, Object>> getBindsByControllerId(@Param("controllerId") Long controllerId);
+
+ /**
+ * 淇敼缁戝畾璁板綍閫氳繃鍙栨按鍙�
+ * @param record
+ * @return
+ */
+ int updateByIntakeSelective(PrIntakeController record);
+
+ /**
+ * 鏍规嵁鍙栨按鍙D鑾峰彇鍙栨按鍙e悕绉�
+ * @param intakeId
+ * @return
+ */
+ String getIntakeNameById(@Param("intakeId") Long intakeId);
+}
\ No newline at end of file
--
Gitblit v1.8.0