From 186aac796d81fd1799c9503558c1081c5102ab74 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 27 二月 2025 17:18:11 +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