linwe
2024-07-05 fee8fbb72f73cc11075b07bf457ce2dd2a9ce19e
src/main/java/org/springblade/modules/task/mapper/TaskLabelReportingEventMapper.xml
@@ -55,6 +55,14 @@
        LEFT JOIN jczz_police_affairs_grid jpag on jp.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0
        LEFT JOIN blade_region br on br.code = jpag.community_code
        where jtlre.is_deleted = 0
        <if test="taskLabelReportingEvent.streetName != null and taskLabelReportingEvent.streetName != ''">
            AND br.town_name like concat('%',#{taskLabelReportingEvent.streetName},'%')
        </if>
        <if test="taskLabelReportingEvent.communityName != null and taskLabelReportingEvent.communityName != ''">
            AND br.village_name like concat('%',#{taskLabelReportingEvent.communityName},'%')
        </if>
        <if test="taskLabelReportingEvent.userId != null and taskLabelReportingEvent.userId != ''">
            AND jtlre.user_id = #{taskLabelReportingEvent.userId}
        </if>
@@ -124,7 +132,7 @@
                <when test="regionChildCodesList !=null and regionChildCodesList.size()>0">
                    and
                    (
                    jg.grid_code in
                    jg.community_code in
                    <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=",">
                        #{code}
                    </foreach>