| | |
| | | <if test="place.placeName!=null and place.placeName!=''"> |
| | | and jp.place_name like concat('%',#{place.placeName},'%') |
| | | </if> |
| | | <if test="place.principal!=null and place.principal!=''"> |
| | | and jp.principal like concat('%',#{place.principal},'%') |
| | | </if> |
| | | <if test="place.principalPhone!=null and place.principalPhone!=''"> |
| | | and jp.principal_phone like concat('%',#{place.principalPhone},'%') |
| | | </if> |
| | | <if test="place.isPerfect==1"> |
| | | and |
| | | ( |
| | |
| | | </if> |
| | | limit 1 |
| | | </select> |
| | | |
| | | <!--查询出有用户id 的场所--> |
| | | <select id="getHasUserIdPlaceList" resultType="org.springblade.modules.place.entity.PlaceEntity"> |
| | | select |
| | | jp.* |
| | | from jczz_place jp |
| | | left join blade_user bu on bu.id = jp.principal_user_id and bu.is_deleted = 0 |
| | | where jp.is_deleted = 0 and jp.principal_user_id is not null |
| | | </select> |
| | | </mapper> |