| | |
| | | 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> |