wl
2022-12-08 68e4b24ac27014d07cab1a2722bca1547de36934
ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml
@@ -127,13 +127,13 @@
        select t1.*,
        t3.region_name community_text
        from ums_base_case t1
        left join ums_sccg_region t3 on t1.street_id=t3.id
        left join ums_sccg_region t3 on t1.community_id=t3.id
        <where>
            <if test="categories != null">
                t1.category = #{categories}
            </if>
            <if test="streetId != null">
                and t1.street_id = #{streetId}
                and t1.community_id = #{streetId}
            </if>
            <if test="code != null and code !=''">
                and t1.code like concat('%',#{code},'%')
@@ -237,8 +237,8 @@
               t3.latitude,
               t4.pic_data,
               t5.`name`     as grade,
               t6.`name`     as street,
               t7.`name`     as community,
               t6.`region_name`     as street,
               t7.`region_name`     as community,
               t1.alarm_time as alarmTime
        FROM ums_base_case t1
                 LEFT JOIN ums_violations t2 ON t1.id = t2.id