| | |
| | | <if test="query.status != null"> |
| | | and t1.status = #{query.status} |
| | | </if> |
| | | <if test="query.startTime != null and startTime != ''"> |
| | | and (t5.implement_time between #{startTime} and #{endTime}) |
| | | <if test="query.startTime != null and query.startTime != ''"> |
| | | and (t5.implement_time between #{query.startTime} and #{query.endTime}) |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | |
| | | ) AS t2 ON t1.task_id = t2.task_id AND t1.create_time = t2.max_time |
| | | ) t5 on t1.id = t5.task_id |
| | | where 1=1 |
| | | and t1.patrol_inspector = #{query.userId} |
| | | <if test="query.userId != null"> |
| | | and t1.patrol_inspector = #{query.userId} |
| | | </if> |
| | | and t1.`disabled` = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | and t1.status !=3 and t1.status !=5 and t1.status !=6 |
| | | AND DATE(t1.implement_time) = CURDATE() |