| | |
| | | import com.panzhihua.common.model.vos.grid.ComMngVillageBuildingHouseDetailVO; |
| | | import com.panzhihua.common.model.vos.grid.ComMngVillageBuildingHouseVO; |
| | | import com.panzhihua.common.model.vos.grid.PopulationListVO; |
| | | import com.panzhihua.common.model.vos.grid.admin.ComMngSubordinateVO; |
| | | import com.panzhihua.common.model.vos.user.ComMngHouseVo; |
| | | import com.panzhihua.service_community.model.dos.ComMngPopulationHouseDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | " AND cmv.alley = #{populationHouseAdminDTO.road} " + |
| | | " </if> " + |
| | | "<if test='populationHouseAdminDTO.doorNo != null and populationHouseAdminDTO.doorNo != "" '>" + |
| | | " AND cmv.houseNum = #{populationHouseAdminDTO.doorNo} " + |
| | | " AND cmv.house_num = #{populationHouseAdminDTO.doorNo} " + |
| | | " </if> " + |
| | | "<if test='populationHouseAdminDTO.floor != null and populationHouseAdminDTO.floor != "" '>" + |
| | | " AND cmph.floor = #{populationHouseAdminDTO.floor} " + |
| | |
| | | " </if> " + |
| | | "<if test='populationHouseAdminDTO.villageId != null'>" + |
| | | " and cmph.village_id = #{populationHouseAdminDTO.villageId} " + |
| | | " </if> " + |
| | | "<if test='populationHouseAdminDTO.address != null and populationHouseAdminDTO.address != "" '>" + |
| | | " AND cmph.address = #{populationHouseAdminDTO.address} " + |
| | | " </if> " + |
| | | " </where>" + |
| | | " order by update_at desc" + |
| | |
| | | " cmphu.id as housePopulationId, " + |
| | | " cmp.sex, " + |
| | | " cmp.`name`, " + |
| | | " cmp.phone, " + |
| | | " IFNULL( cmp.phone, '暂无' ) as phone, " + |
| | | " cmp.card_no, " + |
| | | " cmp.label, " + |
| | | " cmp.address, " + |
| | |
| | | " </script>") |
| | | List<PopulationListVO> getGridVillageBuildingPopulationList(@Param("houseId") Long houseId,@Param("relation") Integer relation,@Param("relationId") Integer relationId); |
| | | |
| | | @Select("select id as houseId,floor from com_mng_population_house where village_id = #{villageId} order by create_at asc") |
| | | List<ComMngSubordinateVO> getHouseLevelByFloors(@Param("villageId") Long villageId); |
| | | |
| | | @Select("select id as houseId,unit_no from com_mng_population_house where village_id = #{villageId} and floor = #{floor} order by create_at asc") |
| | | List<ComMngSubordinateVO> getHouseLevelByUnitNos(@Param("villageId") Long villageId,@Param("floor") String floor); |
| | | |
| | | @Select("select id as houseId,house_no from com_mng_population_house where village_id = #{villageId} and floor = #{floor} and unit_no = #{unitNo} order by create_at asc") |
| | | List<ComMngSubordinateVO> getHouseLevelByHouseNos(@Param("villageId") Long villageId,@Param("floor") String floor,@Param("unitNo") String unitNo); |
| | | } |