| | |
| | | List<ComMngHouseVo> getPopulHouseListByPopulId(@Param("populId")Long populId); |
| | | |
| | | @Select("<script> " + |
| | | "select id,cmv.alley from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId}" + |
| | | "select id as houseId,cmv.alley from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId}" + |
| | | "<if test='villageId != null'>" + |
| | | "and cmv.village_id = #{villageId}" + |
| | | " </if> " + |
| | |
| | | List<ComMngCascadeHouseVO> getHouseLevelByAlley(@Param(value = "communityId") Long communityId,@Param(value = "villageId") Long villageId); |
| | | |
| | | @Select("<script> " + |
| | | "select id,cmv.alley,cmv.house_num from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId}" + |
| | | "select id as houseId,cmv.alley,cmv.house_num from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId}" + |
| | | "<if test='name != null and name != ""'>" + |
| | | "and cmv.alley = #{name}" + |
| | | " </if> " + |
| | |
| | | List<ComMngCascadeHouseVO> getHouseLevelByHouseNum(@Param("name") String name,@Param("communityId") Long communityId,@Param(value = "villageId") Long villageId); |
| | | |
| | | @Select("<script> " + |
| | | "select id,cmv.alley,cmv.house_num,cmph.floor from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId} " + |
| | | "select id as houseId,cmv.alley,cmv.house_num,cmph.floor from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId} " + |
| | | "<if test='name != null and name != ""'>" + |
| | | "and cmv.alley = #{name}" + |
| | | " </if> " + |
| | |
| | | List<ComMngCascadeHouseVO> getHouseLevelByFloor(@Param("name") String name,@Param("houseNum") String houseNum,@Param("communityId") Long communityId,@Param(value = "villageId") Long villageId); |
| | | |
| | | @Select("<script> " + |
| | | "select id,cmv.alley,cmv.house_num,cmph.floor,cmph.unit_no from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId} " + |
| | | "select id as houseId,cmv.alley,cmv.house_num,cmph.floor,cmph.unit_no from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId} " + |
| | | "<if test='name != null and name != ""'>" + |
| | | "and cmv.alley = #{name}" + |
| | | " </if> " + |
| | |
| | | List<ComMngCascadeHouseVO> getHouseLevelByUnitNo(@Param("name") String name,@Param("houseNum") String houseNum,@Param("floor") String floor,@Param("communityId") Long communityId,@Param(value = "villageId") Long villageId); |
| | | |
| | | @Select("<script> " + |
| | | "select cmph.id,cmv.alley,cmv.house_num,cmph.floor,cmph.unit_no,cmph.house_no from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId} " + |
| | | "select cmph.id as houseId,cmv.alley,cmv.house_num,cmph.floor,cmph.unit_no,cmph.house_no from com_mng_population_house as cmph left join com_mng_village as cmv on cmv.village_id = cmph.village_id where cmph.community_id = #{communityId} " + |
| | | "<if test='name != null and name != ""'>" + |
| | | "and cmv.alley = #{name}" + |
| | | " </if> " + |