| | |
| | | <if test="grid.townName != null and grid.townName !='' "> |
| | | and br.town_name like concat('%',#{grid.townName},'%') |
| | | </if> |
| | | order by community_code asc,grid_code asc |
| | | </select> |
| | | |
| | | <!--根据地址编号查询网格数据--> |
| | |
| | | left join blade_user bu on bu.id = jgm.user_id and bu.is_deleted = 0 |
| | | left join blade_region br ON br.code = jg.community_code |
| | | where jg.is_deleted = 0 |
| | | and jp.house_code = #{houseCode} |
| | | and jp.house_code like concat('%',#{houseCode},'%') |
| | | limit 1 |
| | | </select> |
| | | |
| | |
| | | |
| | | <!--查询全部--> |
| | | <select id="selectGridAll" resultType="org.springblade.modules.grid.entity.GridEntity"> |
| | | select id,community_code,grid_name,principal,principal_phone,remark,sort from jczz_grid |
| | | select id,grid_code,community_code,grid_name,principal,principal_phone,remark,sort from jczz_grid |
| | | where is_deleted = 0 |
| | | </select> |
| | | |