| | |
| | | ) b on a.id = b.id |
| | | ) jppl on jppl.place_id = jp.id |
| | | where jp.is_deleted = 0 |
| | | <if test="place.roleName!=null and place.roleName!=''"> |
| | | <if test="place.roleName!=null and place.roleName!='' and place.createUser!=null"> |
| | | <choose> |
| | | <when test="place.roleName=='网格员'"> |
| | | and |
| | |
| | | <if test="place.principalPhone!=null and place.principalPhone!=''"> |
| | | and jp.principal_phone like concat('%',#{place.principalPhone},'%') |
| | | </if> |
| | | <if test="place.houseCode!=null and place.houseCode!=''"> |
| | | and jp.house_code = #{place.houseCode} |
| | | </if> |
| | | <if test="place.id!=null"> |
| | | and jp.id = #{place.id} |
| | | </if> |
| | | <if test="place.isPerfect==1"> |
| | | and |
| | | ( |