| | |
| | | |
| | | 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.*; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/area/all") |
| | | R getCityTreeByProvinceCode(@RequestParam(value = "provinceAdcode") Integer provinceAdcode) { |
| | | return comMngProvinceService.getCityTreeByProvinceCode(provinceAdcode); |
| | | public R getCityTreeByProvinceCode(@RequestParam(value = "provinceAdcode") Integer provinceAdcode, |
| | | @RequestParam(value = "areaCode", required = false) String areaCode) { |
| | | return comMngProvinceService.getCityTreeByProvinceCode(provinceAdcode, areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/population/page") |
| | | public R pagePopulation(@RequestBody ComMngPopulationDTO comMngPopulationVO) { |
| | | return comMngPopulationService.pagePopulation(comMngPopulationVO); |
| | | } |
| | | /** |
| | | * 社区后台老人导出管理列表 |
| | | * |
| | | * @param comMngPopulationVO |
| | | * 查询参数 |
| | | * @return 实有人口分页查询结果 |
| | | */ |
| | | @PostMapping("/population/exportOld") |
| | | public R exportOld(@RequestBody ComMngPopulationDTO comMngPopulationVO) { |
| | | return comMngPopulationService.exportOld(comMngPopulationVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据身份证查询实有人口信息 |
| | | */ |
| | | @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 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); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/special/page") |
| | | 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); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/population/second/list") |
| | | public R getSecondHouseAddress(@RequestBody CascadeHouseDTO cascadeHouseDTO) { |
| | | return comMngPopulationHouseService.getSecondHouseAddress(cascadeHouseDTO); |
| | | } |
| | | |
| | | /** |
| | | * 查询房屋二级级联菜单后台 |
| | | * |
| | | * @param cascadeHouseDTO |
| | | * 请求参数 |
| | | * @return 菜单列表 |
| | | */ |
| | | @PostMapping("/population/second/listBack") |
| | | public R getSecondHouse(@RequestBody CascadeHouseDTO cascadeHouseDTO) { |
| | | return comMngPopulationHouseService.getSecondHouse(cascadeHouseDTO); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R detailHousesUser(@RequestParam("id") Long id) { |
| | | return comMngPopulationHouseUserService.detail(id); |
| | | } |
| | | |
| | | /** |
| | | * 历史数据人员类型填充 |
| | | * @param newVoList |
| | | * @param communityId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/history/filled") |
| | | public R filledPopulationPersonType(@RequestBody List<ComMngPopulationServeExcelVO> newVoList, |
| | | @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId) { |
| | | return comMngPopulationService.filledPopulationPersonType(newVoList, communityId, userId); |
| | | } |
| | | } |