| | |
| | | <if test="query.startTime != null and startTime != ''"> |
| | | and (t5.implement_time between #{startTime} and #{endTime}) |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | | <select id="pageListUser" resultType="com.ruoyi.system.vo.system.AppealListVO"> |
| | | select t1.*,t2.location_name as locationName,t3.location_name as locationTypeName, |
| | |
| | | ) 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} |
| | | 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() |
| | | order by distance asc |
| | | </select> |
| | | |