From 5e31f7c1f3eaf5cfd3be0e5fc942aa78f3a4133c Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 25 二月 2025 10:19:07 +0800
Subject: [PATCH] 修改下发缓存命令的等待逻辑,RTU上行数据后,使尽快发送下行命令。

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

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateScheduleMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateScheduleMapper.xml
index 38799f3..1c90e2a 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateScheduleMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateScheduleMapper.xml
@@ -134,4 +134,15 @@
       current_state = #{currentState,jdbcType=TINYINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
+
+  <!--鏍规嵁璁″垝ID鑾峰彇鐏屾簤娆″簭-->
+  <select id="getIrrigateSchedules" resultType="com.dy.pipIrrGlobal.voIr.VoIrrigateSchedule">
+    SELECT
+        id AS scheduleId,
+        start_time AS startTime,
+        TIMESTAMPDIFF(MINUTE, start_time, stop_time) AS duration,
+        intake_ids AS intakeIds
+    FROM ir_irrigate_schedule
+    WHERE plan_id = #{planId}
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0