| | |
| | | <!--自定义分页查询--> |
| | | <select id="selectGridPage" resultType="org.springblade.modules.grid.vo.GridVO"> |
| | | select |
| | | jg.id,jg.community_code,jg.grid_name,jg.principal,jg.principal_phone,jg.remark, |
| | | jg.id, |
| | | jg.community_code, |
| | | jg.grid_name, |
| | | jg.grid_code, |
| | | jg.principal, |
| | | jg.principal_phone, |
| | | jg.remark, |
| | | br.name as communityName,br.town_name as townName |
| | | from jczz_grid jg |
| | | left join blade_region br on br.code = jg.community_code |
| | |
| | | <if test="grid.principal!=null and grid.principal!=''"> |
| | | and jg.principal like concat('%',#{grid.principal},'%') |
| | | </if> |
| | | <if test="grid.gridCode!=null and grid.gridCode!=''"> |
| | | and jg.grid_code like concat('%',#{grid.gridCode},'%') |
| | | </if> |
| | | <if test="grid.principalPhone!=null and grid.principalPhone!=''"> |
| | | and jg.principal_phone like concat('%',#{grid.principalPhone},'%') |
| | | </if> |