| | |
| | | jpp.confirm_flag, |
| | | jpp.confirm_time, |
| | | jpp.confirm_notion, |
| | | br.town_name as townStreetName, |
| | | br.name as neiName, |
| | | jc.category_name |
| | | FROM |
| | | jczz_place_practitioner jpp |
| | |
| | | LEFT JOIN jczz_place_poi_label jppl on jppl.place_id = jp.id and type = 3 |
| | | LEFT JOIN jczz_category jc on jc.category_no = jppl.poi_code |
| | | 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> |
| | | <if test="placePractitioner.townStreetName!=null and placePractitioner.townStreetName!=''"> |
| | | and br.town_name like concat('%',#{placePractitioner.townStreetName},'%') |
| | | </if> |
| | | <if test="placePractitioner.neiName!=null and placePractitioner.neiName!=''"> |
| | | and br.name like concat('%',#{placePractitioner.neiName},'%') |
| | | </if> |
| | | <if test="placePractitioner.id != null ">and jpp.id = #{placePractitioner.id}</if> |
| | | <if test="placePractitioner.placeId != null ">and jpp.place_id = #{placePractitioner.placeId}</if> |
| | | <if test="placePractitioner.name != null and placePractitioner.name != ''">and jpp.name like concat('%', |