From dae44e71f055776501ebbb1d3524833a50ad439a Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期一, 24 二月 2025 15:34:29 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- 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