| | |
| | | import com.panzhihua.common.model.dtos.user.PageInputUserDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.user.ComMngTagVO; |
| | | import com.panzhihua.common.model.vos.user.UserElectronicFileVO; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.service_community.service.*; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 车辆导出 |
| | | * |
| | | * @param exportComMngCarExcelDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/car/export") |
| | | public R exportRealCar(@RequestBody ExportComMngCarExcelDTO exportComMngCarExcelDTO){ |
| | | return comMngCarService.exportRealCar(exportComMngCarExcelDTO); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台实有单位管理列表 |
| | | * |
| | | * @param pageComMngRealCompanyDTO |
| | |
| | | @PostMapping("/company/page") |
| | | public R pageQueryComMngRealCompany(@RequestBody PageComMngRealCompanyDTO pageComMngRealCompanyDTO) { |
| | | return comMngRealCompanyService.pageQueryComMngRealCompany(pageComMngRealCompanyDTO); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台实有单位统计 |
| | | * |
| | | * @param communityId 社区id |
| | | * @return 统计结果 |
| | | */ |
| | | @PostMapping("/company/statistics") |
| | | public R getComMngRealCompanyTotalByAdmin(@RequestParam("communityId") Long communityId){ |
| | | return comMngRealCompanyService.getComMngRealCompanyTotalByAdmin(communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping("/population/import") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R listSavePopulationExcelVO(@RequestBody List<ComMngPopulationServeExcelVO> list, @RequestParam(value = "communityId") Long communityId) throws Exception { |
| | | public R listSavePopulationExcelVO(@RequestBody List<ComMngPopulationServeExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSavePopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入吸毒人员 |
| | | * |
| | | * @param list 吸毒人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("population/importDrug") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R listSavePopulationDrugExcelVO(@RequestBody List<ComMngPopulationDrugExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveDrugPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入社区矫正人员 |
| | | * |
| | | * @param list 社区矫正人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("population/importCorrect") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R listSavePopulationCorrectExcelVO(@RequestBody List<ComMngPopulationCorrectExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveCorrectPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入重精人员 |
| | | * |
| | | * @param list 重精人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("population/importMajor") |
| | | public R listSavePopulationMajorExcelVO(@RequestBody List<ComMngPopulationMajorExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveMajorPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入邪教人员 |
| | | * |
| | | * @param list 邪教人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("population/importCult") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R listSavePopulationCultExcelVO(@RequestBody List<ComMngPopulationCultExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveCultPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入刑释人员 |
| | | * |
| | | * @param list 刑释人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @PostMapping("population/importRehabilitation") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R listSavePopulationRehabilitationExcelVO(@RequestBody List<ComMngPopulationRehabilitationExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveRehabilitationPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入重点上访人员 |
| | | * |
| | | * @param list 重点上访人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("population/importKey") |
| | | public R listSavePopulationKeyExcelVO(@RequestBody List<ComMngPopulationKeyExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveKeyPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入服刑人员 |
| | | * |
| | | * @param list 服刑人员数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("population/importSentence") |
| | | public R listSavePopulationSentenceExcelVO(@RequestBody List<ComMngPopulationSentenceExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveSentencePopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入退役军人 |
| | | * |
| | | * @param list 退役军人数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("population/importVeterans") |
| | | public R listSavePopulationVeteransExcelVO(@RequestBody List<ComMngPopulationVeteransExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveVeteransPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入残疾人 |
| | | * |
| | | * @param list 残疾人数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("population/importDisability") |
| | | public R listSavePopulationDisabilityExcelVO(@RequestBody List<ComMngPopulationDisabilityExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngPopulationService.listSaveDisabilityPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入低保户 |
| | | * |
| | | * @param list 低保户数据 |
| | | * @param communityId 社区id |
| | | * @return 导入结果 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("/population/importLowSecurity") |
| | | public R listSavePopulationLowSecurityExcelVO(@RequestBody List<ComMngPopulationLowSecurityExcelVO> list, @RequestParam(value = "communityId") Long communityId) { |
| | | return comMngPopulationService.listSaveLowSecurityPopulation(list, communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据小区id查询实有人口 |
| | | * |
| | | * @param villageId 小区id |
| | | * @return 查询结果 |
| | | */ |
| | | @PostMapping("/population/getListByVillageId") |
| | | R getPopulationListByVillageId(@RequestParam(value = "villageId") Long villageId){ |
| | | return comMngPopulationService.getPopulationListByVillageId(villageId); |
| | | } |
| | | |
| | | /** |
| | | * 编辑实有人口 |
| | | * |
| | | * @param populationEditDTO |
| | |
| | | } |
| | | |
| | | /** |
| | | * 基础数据》特殊群体》分页查询标签列表 |
| | | * @param comMngUserTagDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/special/tags/page") |
| | | public R specialInputUserTags(@RequestBody PageInputUserDTO comMngUserTagDTO){ |
| | | return comMngPopulationService.specialInputUserTags(comMngUserTagDTO); |
| | | } |
| | | |
| | | /** |
| | | * 新增或修改特殊群体标签 |
| | | * @param comMngTagVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/special/tags/save") |
| | | public R saveSpecialInputUserTags(@RequestBody ComMngTagVO comMngTagVO){ |
| | | return comMngPopulationService.saveSpecialInputUserTags(comMngTagVO); |
| | | } |
| | | |
| | | /** |
| | | * 删除特殊群体标签 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/special/tags/delete") |
| | | public R deleteSpecialInputUserTags(@RequestParam(value = "id") Long id){ |
| | | return comMngPopulationService.deleteSpecialInputUserTags(id); |
| | | } |
| | | |
| | | /** |
| | | * 编辑实有人口_电子档案 |
| | | * |
| | | * @param userElectronicFileVO |