linwei
2024-01-02 31b6aefacbee9dde61be6afcb7c6dbbf7c6baa7d
src/main/java/org/springblade/modules/task/mapper/TaskMapper.xml
@@ -74,17 +74,15 @@
        <if test="task.startTime != null and task.startTime != '' and task.endTime != null and task.endTime != '' ">
            AND jt.create_time BETWEEN #{task.startTime} and #{task.endTime}
        </if>
        <!-- 取保候审 -->
        <if test="task.reportType != null and task.reportType == 1 ">
            and jt.report_type = 1
        <!-- 取保候审 或 报事报修 -->
        <if test="task.reportType != null and task.reportType != 2 ">
            and jt.report_type = #{task.reportType}
        </if>
        <!-- 场所店铺 -->
        <if test="task.reportType != null and task.reportType == 2 ">
            and jt.report_type in (2,3,4,5,6)
        </if>
        order by jt.create_time desc
    </select>