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>