xuhy
2025-07-03 8ea3b11f54ea9b56f295eeed04eb869e7f67bd16
ruoyi-system/src/main/resources/mapper/system/TAppealMapper.xml
@@ -59,6 +59,7 @@
        <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,
@@ -147,8 +148,10 @@
        ) 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>