zhongrj
2023-12-28 8dab1f5e6ae80f6808d818ba799d38bb0ef4e699
src/main/java/org/springblade/modules/task/mapper/TaskMapper.xml
@@ -22,7 +22,7 @@
    <select id="selectTaskPage" resultMap="taskResultMap">
        SELECT
        IFNULL(jda.address_name,jp.localtion)address_name ,
        IFNULL(jda.address_name,jp.location)address_name ,
        jt.id,
        jt.name,
        jt.type,
@@ -71,6 +71,9 @@
        <if test="task.createDept != null ">and jt.create_dept = #{task.createDept}</if>
        <if test="task.isDeleted != null ">and jt.is_deleted = #{task.isDeleted}</if>
        <if test="task.houseCode != null  and task.houseCode != ''">and jt.house_code = #{task.houseCode}</if>
        <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