zhubaomin
2025-04-15 e4aa9db5e3c91c969adf2361f8069b8c54244e1a
获取轮灌组详情接口,对轮灌组增加终止状态判断
1个文件已修改
5 ■■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIrrigateGroupMapper.xml
@@ -296,8 +296,9 @@
    SELECT
        grp.id AS groupId,
        grp.group_code AS groupCode,
        IF(NOW() < sche.start_time, 2,
        IF(NOW() > sche.start_time AND NOW() < DATE_ADD(sche.start_time, INTERVAL sche.duration MINUTE), 3, 4)) AS state,
        IF(sche.current_state = 2, 5,
            IF(NOW() < sche.start_time, 2,
                IF(NOW() > sche.start_time AND NOW() < DATE_ADD(sche.start_time, INTERVAL sche.duration MINUTE), 3, 4))) AS state,
        sche.start_time AS startTime,
        DATE_ADD(sche.start_time, INTERVAL sche.duration MINUTE) AS stopTime,
        sche.duration,