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/IrIntakeOperateMapper.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
index 44de0f1..cf9d2c9 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
@@ -187,6 +187,14 @@
         io.failure_factors AS result
     FROM ir_intake_operate io
         inner JOIN ir_group_intake gi ON gi.intake_id = io.intake_id
-    WHERE io.plan_id = #{planId} AND gi.group_id = #{groupId};
+    WHERE io.plan_id = #{planId} AND gi.group_id = #{groupId} AND operate_type = 1;
+  </select>
+
+  <!--鏍规嵁璁″垝ID鑾峰彇鍙栨按鍙e懡浠ゅ彂甯冨け璐ユ暟閲忥紝鐏屾簤璁″垝璇︽儏椤典娇鐢�-->
+  <select id="getFailureCount" resultType="java.lang.Integer">
+    SELECT
+      COUNT(1) AS failureCount
+    FROM ir_intake_operate
+    WHERE operate_type = 1 AND command_result != 1 AND plan_id = #{planId}
   </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0