linwe
2024-07-08 7a1e4d9fe3fe2172d5c4fba524f17ffd73ffbb3e
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -34,12 +34,16 @@
        LEFT JOIN blade_user bus on bus.id = jpag.police_user_id
        left join (
        select a.* from jczz_place_poi_label a inner join
        (
        select place_id,max(id) as id from jczz_place_poi_label b group by place_id
        ) b on a.id = b.id
        ( select place_id,max(id) as id from jczz_place_poi_label b group by place_id ) b on a.id = b.id
        ) jppl on jppl.place_id = jp.id
        where jp.is_deleted = 0 and jp.source!=3
        and jp.place_name != ''
        <if test="place.poiCodeList !=null and place.poiCodeList.size()>0">
            and jppl.poi_code in
            <foreach collection="place.poiCodeList" item="code" open="(" close=")" separator=",">
                #{code}
            </foreach>
        </if>
        <if test="place.placeName!=null and place.placeName!=''">
            and jp.place_name like concat('%',#{place.placeName},'%')
        </if>
@@ -180,6 +184,10 @@
            and jpag.pcs_name like concat('%',#{place.deptName},'%')
        </if>
        <if test="place.startTime != null and place.startTime != '' and place.endTime != null and place.endTime != '' ">
            AND jp.create_time BETWEEN #{place.startTime} and #{place.endTime}
        </if>
        <if test="place.policeName!=null and place.policeName!=''">
            and bus.name like concat('%',#{place.policeName},'%')
        </if>