| | |
| | | |
| | | import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO; |
| | | import com.panzhihua.common.model.dtos.grid.DelComMngHousePopulationDTO; |
| | | import com.panzhihua.service_community.model.dos.ComMngPopulationDO; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据身份证查询实有人口信息 |
| | | */ |
| | | @GetMapping("/population/selectByIdCard") |
| | | public R selectByIdCard(@RequestParam("idCard") String idCard){ |
| | | ComMngPopulationDO comMngPopulationDO=comMngPopulationService.getPopulationByCardNo(idCard); |
| | | if(comMngPopulationDO!=null){ |
| | | return R.ok(comMngPopulationDO.getAddress()); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台导入实有人口 |
| | | * |
| | | * @param list |
| | |
| | | /** |
| | | * 批量删除实有人口 |
| | | * |
| | | * @param Ids |
| | | * @param ids |
| | | * 删除id集合 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/population/delete") |
| | | public R deletePopulations(@RequestBody List<Long> Ids) { |
| | | return comMngPopulationService.deletePopulations(Ids); |
| | | public R deletePopulations(@RequestBody List<Long> ids, Long communityId) { |
| | | return comMngPopulationService.deletePopulations(ids,communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R specialInputUser(@RequestBody PageInputUserDTO pageInputUserDTO) { |
| | | return comMngPopulationService.specialInputUser(pageInputUserDTO); |
| | | } |
| | | /** |
| | | * 导出特殊群体 |
| | | * |
| | | * @param pageInputUserDTO |
| | | * 请求参数 |
| | | * @return 特殊群体列表 |
| | | */ |
| | | @PostMapping("/special/export") |
| | | public R specialInputUserExport(@RequestBody PageInputUserDTO pageInputUserDTO) { |
| | | return comMngPopulationService.specialInputUserExport(pageInputUserDTO); |
| | | } |
| | | |
| | | /** |
| | | * 删除特殊群体人员 |
| | |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/special/delete") |
| | | public R deleteSpecialInputUser(@RequestParam(value = "id") Long id) { |
| | | return comMngPopulationService.deleteSpecialInputUser(id); |
| | | public R deleteSpecialInputUser(@RequestParam(value = "id") Long id,@RequestParam(value = "communityId") Long communityId) { |
| | | return comMngPopulationService.deleteSpecialInputUser(id,communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询房屋二级级联菜单后台 |
| | | * |
| | | * @param cascadeHouseDTO |
| | | * 请求参数 |
| | | * @return 菜单列表 |
| | | */ |
| | | @PostMapping("/population/second/listBack") |
| | | public R getSecondHouse(@RequestBody CascadeHouseDTO cascadeHouseDTO) { |
| | | return comMngPopulationHouseService.getSecondHouse(cascadeHouseDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询房屋列表 |
| | | * |
| | | * @param populationHouseAdminDTO |