From a0a9fc7a58a39626a395d2760194641726e1cd35 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 25 四月 2025 10:48:15 +0800
Subject: [PATCH] 1、微信小程序后端轮灌迟延时长改为可配置的; 2、微信小程序查询取水口接口实现修改,改为后端模糊查询;

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml
index 115fe2b..5305c81 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml
@@ -362,4 +362,21 @@
            INNER JOIN pr_controller con ON con.intakeId = gi.intake_id
     WHERE gi.group_id = #{groupId}
   </select>
+  
+  <!--鏍规嵁杞亴缁勫悕绉扮粺璁¤褰曟暟-->
+  <select id="countByGroupCode" resultType="java.lang.Integer">
+    SELECT COUNT(*) 
+    FROM ir_irrigate_group 
+    WHERE group_code = #{groupCode} 
+    AND deleted = 0
+  </select>
+  
+  <!--鏍规嵁杞亴缁勫悕绉扮粺璁¤褰曟暟锛堟帓闄ゆ寚瀹欼D锛�-->
+  <select id="countByGroupCodeExcludeId" resultType="java.lang.Integer">
+    SELECT COUNT(*) 
+    FROM ir_irrigate_group 
+    WHERE group_code = #{groupCode} 
+    AND id != #{excludeId} 
+    AND deleted = 0
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0