| | |
| | | <select id="selectPlacePage" resultType="org.springblade.modules.place.vo.PlaceVO"> |
| | | select jp.*,bu.real_name as username,bu.phone as phone from jczz_place jp |
| | | left join blade_user bu on bu.id = jp.principal_user_id and bu.is_deleted = 0 |
| | | left join jczz_place_poi_label jppl on jppl.place_id = jp.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 |
| | | ) jppl on jppl.place_id = jp.id |
| | | where jp.is_deleted = 0 |
| | | <if test="place.placeName!=null and place.placeName!=''"> |
| | | and jp.place_name like concat('%',#{place.placeName},'%') |