| | |
| | | SELECT |
| | | plan.plan_name AS planName, |
| | | pro.project_name AS projectName, |
| | | IF(#{terminateTime} < plan.plan_start_time, 6, |
| | | IF(#{terminateTime} < plan.plan_stop_time, 5, 4)) AS state, |
| | | <!-- IF(#{terminateTime} < plan.plan_start_time, 6,--> |
| | | <!-- IF(#{terminateTime} < plan.plan_stop_time, 5, 4)) AS state,--> |
| | | IF(plan.executing_state = 3, 5, |
| | | IF(NOW() < plan_start_time, 2, |
| | | IF(NOW() < plan_stop_time, 3, 4) |
| | | ) |
| | | ) AS state, |
| | | plan.plan_start_time AS planStartTime, |
| | | plan.plan_stop_time AS planStopTime, |
| | | #{terminateTime} AS realStopTime, |