linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
src/main/java/org/springblade/modules/task/mapper/TaskPlaceRectificationMapper.xml
@@ -193,8 +193,8 @@
        jp.principal,
        jp.principal_phone,
        jp.nine_type,
        br.town_name,
        br.village_name,
        br.town_name streetName,
        br.village_name communityName,
        bu.`name`,
        jpe.legal_tel,
        jpe.legal_person,
@@ -213,7 +213,7 @@
            <if test="taskPalce.taskId != null ">and jtpr.task_id = #{taskPalce.taskId}</if>
            <if test="taskPalce.status != null and taskPalce.status != 2  ">and jtpr.status = #{taskPalce.status}</if>
            <if test="taskPalce.status != null and taskPalce.status = 2 ">and jtpr.status in (2,3)</if>
            <if test="taskPalce.status != null and taskPalce.status == 2 ">and jtpr.status in (2,3)</if>
            <if test="taskPalce.taskName != null  and taskPalce.taskName != ''">and jtpr.task_name =
                #{taskPalce.taskName}
@@ -224,6 +224,14 @@
            </if>
            <if test="taskPalce.endTime!=null and taskPalce.endTime!=''">
                and jtpr.create_time&lt;=#{taskPalce.endTime}
            </if>
            <if test="taskPalce.streetName!=null and taskPalce.streetName!=''">
                and br.town_name like concat('%',#{taskPalce.streetName},'%')
            </if>
            <if test="taskPalce.communityName!=null and taskPalce.communityName!=''">
                and br.village_name like concat('%',#{taskPalce.communityName},'%')
            </if>
            <if test="taskPalce.placeName!=null and taskPalce.placeName!=''">
@@ -466,8 +474,8 @@
        jp.principal,
        jp.principal_phone,
        jp.nine_type,
        br.town_name,
        br.village_name,
        br.town_name streetName,
        br.village_name communityName,
        bu.`name`,
        jpe.legal_tel,
        jpe.legal_person,
@@ -484,7 +492,10 @@
            <if test="taskPalce.id != null ">and jtpr.id = #{taskPalce.id}</if>
            <if test="taskPalce.placeCheckId != null ">and jtpr.place_check_id = #{taskPalce.placeCheckId}</if>
            <if test="taskPalce.taskId != null ">and jtpr.task_id = #{taskPalce.taskId}</if>
            <if test="taskPalce.status != null ">and jtpr.status = #{taskPalce.status}</if>
            <if test="taskPalce.status != null and taskPalce.status != 2  ">and jtpr.status = #{taskPalce.status}</if>
            <if test="taskPalce.status != null and taskPalce.status == 2 ">and jtpr.status in (2,3)</if>
            <if test="taskPalce.taskName != null  and taskPalce.taskName != ''">and jtpr.task_name =
                #{taskPalce.taskName}
            </if>
@@ -496,6 +507,14 @@
                and jtpr.create_time&lt;=#{taskPalce.endTime}
            </if>
            <if test="taskPalce.streetName!=null and taskPalce.streetName!=''">
                and br.town_name like concat('%',#{taskPalce.streetName},'%')
            </if>
            <if test="taskPalce.communityName!=null and taskPalce.communityName!=''">
                and br.village_name like concat('%',#{taskPalce.communityName},'%')
            </if>
            <if test="taskPalce.placeName!=null and taskPalce.placeName!=''">
                and jp.place_name like concat('%',#{taskPalce.placeName},'%')
            </if>