From 2ca2e51f3a838252ed9cd8989f4f5d6fe35d468c Mon Sep 17 00:00:00 2001 From: 罗元桥 <2376770955@qq.com> Date: 星期三, 30 六月 2021 18:02:00 +0800 Subject: [PATCH] Merge branch 'test' into 'master' --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java | 369 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 366 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java index 4d00363..c449e01 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java @@ -5,9 +5,22 @@ import com.panzhihua.common.model.dtos.advertisement.ComOpsAdvDTO; import com.panzhihua.common.model.dtos.advertisement.PageComOpsAdvDTO; import com.panzhihua.common.model.dtos.community.*; +import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenStatisticAgeGenderDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenStatisticPartyActivityDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.PageBigScreenStatisticPartyOrg; +import com.panzhihua.common.model.dtos.community.bigscreen.event.ScreenEventListDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenActActivityListDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenActActivityPeopleListDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenDiscussListDTO; +import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenMicroListDTO; +import com.panzhihua.common.model.dtos.community.wallet.ComActWalletDetailDTO; +import com.panzhihua.common.model.dtos.community.wallet.PageComActWalletTradeDTO; import com.panzhihua.common.model.dtos.elders.ComEldersAuthGetResultDTO; import com.panzhihua.common.model.dtos.elders.ComEldersAuthPageDTO; import com.panzhihua.common.model.dtos.elders.ComEldersAuthUserAddAppDTO; +import com.panzhihua.common.model.dtos.grid.*; +import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationListDTO; import com.panzhihua.common.model.dtos.neighbor.*; import com.panzhihua.common.model.dtos.neighbor.*; import com.panzhihua.common.model.dtos.neighbor.ComActNeighborCircleAdminDTO; @@ -20,10 +33,12 @@ import com.panzhihua.common.model.dtos.shop.PageComShopStoreDTO; import com.panzhihua.common.model.dtos.user.PageInputUserDTO; import com.panzhihua.common.model.dtos.vaccines.*; -import com.panzhihua.common.model.vos.IPageVO; -import com.panzhihua.common.model.vos.R; -import com.panzhihua.common.model.vos.SystemmanagementConfigVO; +import com.panzhihua.common.model.vos.*; import com.panzhihua.common.model.vos.community.*; +import com.panzhihua.common.model.vos.community.bigscreen.BigScreenStatisticAgeGender; +import com.panzhihua.common.model.vos.community.bigscreen.BigScreenStatisticPartyActivity; +import com.panzhihua.common.model.vos.community.bigscreen.BigScreenStatisticPartyBuild; +import com.panzhihua.common.model.vos.community.bigscreen.PartyBuildingMemberVO; import com.panzhihua.common.model.vos.community.questnaire.EditComActQuestnaireVo; import com.panzhihua.common.model.vos.community.questnaire.QuestnaireVO; import com.panzhihua.common.model.vos.community.questnaire.UsersAnswerQuestnaireVO; @@ -261,6 +276,13 @@ */ @PostMapping("addeasyphoto") R addEasyPhoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO); + + /** + * 查询随手拍是否有活动 + * @return 活动详情 + */ + @PostMapping("getEasyPhotoActivity") + R getEasyPhotoActivity(@RequestParam("communityId") Long communityId); /** * 发布微心愿 @@ -2772,6 +2794,22 @@ @PostMapping("/eldersauthelderly/batchSave") R listSaveEldersAuthElderlyExcelVO(@RequestBody List<EldersAuthElderlyExcelVO> newVoList,@RequestParam("communityId") Long communityId,@RequestParam("createBy") Long createBy); + /** + * 批量保存楼栋 + * @param newVoList + * @param communityId + * @return + */ + @PostMapping("/building/batchSave") + R listSaveBuildingExcelVO(@RequestBody List<ComMngBuildingExcelVO> newVoList,@RequestParam("communityId") Long communityId); + + /** + * 根据字典key查询字典项 + * @param key + * @return + */ + @GetMapping("/dictionary/listDictionaryByKey") + R<List<BcDictionaryVO>> listDictionaryByKey(@RequestParam("key") String key); /** * 查看高龄老人详情 * @param id @@ -2844,6 +2882,19 @@ */ @PostMapping("/elders/records/page") R pageQueryEldersAuthRecord(@RequestBody PageEldersAuthRecordDTO pageEldersAuthElderlyDTO); + /** + * description 批量保存重点人群人员信息 + * + * @param list 重点人群信息 + * @return R 保存结果 + * @author manailin + * @date 2021/6/10 17:00 + */ + @PostMapping("/key_person/batch/save") + R saveBatchKeyPerson(@RequestBody List<KeyPersonInfoDTO> list); + + @GetMapping("/screen/population/statistic") + R statistic(@RequestParam("communityId")Long communityId); /** * @@ -2859,4 +2910,316 @@ @PostMapping("/elders/getAuthHistoryExport") R getAuthHistoryExport(@RequestBody PageEldersAuthHistoryDTO pageEldersAuthElderlyDTO); + + @GetMapping("/screen/work/neighborCircle") + R statisticNeighborCircle(@RequestParam("communityId") Long communityId); + + + /** + * 党员党支部统计信息 + * @return + */ + @PostMapping("/bigscreen/party/orgmembers") + R bigscreenPartyOrgmembers(@RequestBody PageBigScreenStatisticPartyOrg pageBigScreenStatisticPartyOrg); + + /** + * 党员年龄占比、男女占比 + * @return + */ + @PostMapping("/bigscreen/party/ageGender") + R<BigScreenStatisticAgeGender> ageGender(@RequestBody BigScreenStatisticAgeGenderDTO bigScreenStatisticAgeGenderDTO); + + /** + * 党建数据概览 + * @return + */ + @PostMapping("/bigscreen/party/partybuild/{communityId}") + R<BigScreenStatisticPartyBuild> bigscreenPartybuild(@PathVariable("communityId") Long communityId); + + /** + * 党员活动参加用户排行榜-TOP3 + * @return + */ + @PostMapping("/bigscreen/party/activitytopuser/{communityId}") + R<List<PartyBuildingMemberVO>> bigscreenPartyactivitytopuser(@PathVariable("communityId") Long communityId); + + /** + * 党员活动 + * @return + */ + @PostMapping("/bigscreen/party/bigscreenPartyactivity") + R<List<BigScreenStatisticPartyActivity>> bigscreenPartyactivity(BigScreenStatisticPartyActivityDTO bigScreenStatisticPartyActivityDTO); + + /** + * 首页大屏统计接口 + * @param communityId 社区id + * @return 统计结果 + */ + @GetMapping("/screen/getScreenIndex") + R getScreenIndex(@RequestParam("communityId")Long communityId); + + /** + * 事件大屏统计接口 + * @param communityId 社区id + * @return 统计结果 + */ + @GetMapping("/screen/getScreenEvent") + R getScreenEvent(@RequestParam("communityId")Long communityId); + + /** + * 民生大屏统计接口 + * @param communityId 社区id + * @return 统计结果 + */ + @GetMapping("/screen/getScreenCivil") + R getScreenCivil(@RequestParam("communityId")Long communityId); + + /** + * 大屏统计邻里圈 + */ + @GetMapping("/screen/work/wish") + R wish(@RequestParam("communityId") Long communityId); + + /** + * 大屏统计社区-活动 + * @param communityId + * @return + */ + @GetMapping("/screen/work/activity") + R activity(@RequestParam("communityId") Long communityId); + + /** + * 大屏统计一起议 + * @param communityId + * @return + */ + @GetMapping("/screen/work/discuss") + R discuss(@RequestParam("communityId") Long communityId); + + /** + * 大屏统计党建工作 + * @param communityId + * @return + */ + @GetMapping("/screen/work/pbWork") + R pbWork(@RequestParam("communityId")Long communityId); + + + /** + * 大屏统计随手拍 + * @param communityId + * @return + */ + @GetMapping("/screen/work/easyPhoto") + R easyPhoto(@RequestParam("communityId")Long communityId); + + /** + * 大屏统计工作情况 + * @param communityId + * @return + */ + @GetMapping("/screen/work/workCount") + R workCount(@RequestParam("communityId")Long communityId); + + /** + * description 批量保存残疾人人员信息 + * + * @param list 疾人信息列表 + * @return R 保存结果 + * @author manailin + * @date 2021/6/10 17:00 + */ + @PostMapping("/disable_person/batch/save") + R saveBatchDisabledPersons(@RequestBody List<DisabledPersonsDTO> list); + + /** + * 获取社区网格 + * @param communityId 社区id + * @return 网格数据 + */ + @GetMapping("/screen/getScreenGirds") + R getScreenGirds(@RequestParam("communityId")Long communityId); + + /** + * 事件大屏查询事件详情 + * @param eventDetailDTO 请求参数 + * @return 事件详情 + */ + @PostMapping("/screen/getScreenEventDetail") + R getScreenEventDetail(@RequestBody BigScreenEventDetailDTO eventDetailDTO); + + /** + * 工作大屏-一起议列表 + * @param discussListDTO 请求参数 + * @return 一起议列表 + */ + @PostMapping("/screen/work/getScreenDiscussList") + R getScreenDiscussList(@RequestBody ScreenDiscussListDTO discussListDTO); + + /** + * 工作大屏-社区活动列表 + * @param actActivityListDTO 请求参数 + * @return 活动列表 + */ + @PostMapping("/screen/work/getScreenActActivityList") + R getScreenActActivityList(@RequestBody ScreenActActivityListDTO actActivityListDTO); + + /** + * 工作大屏-社区活动报名人员列表 + * @param activityPeopleListDTO 请求参数 + * @return 社区活动报名人员列表 + */ + @PostMapping("/screen/work/getActActivityPeopleList") + R getActActivityPeopleList(@RequestBody ScreenActActivityPeopleListDTO activityPeopleListDTO); + + /** + * 工作大屏-微心愿列表 + * @param microListDTO 请求参数 + * @return 微心愿列表 + */ + @PostMapping("/screen/work/getScreenMicroList") + R getScreenMicroList(@RequestBody ScreenMicroListDTO microListDTO); + + /** + * 获取系统参数接口 + * @param code 参数code + * @return 系统参数 + */ + @GetMapping("/sys/conf/get") + R getConf(@RequestParam("code") String code); + + /** + * 根据社区id获取社区下人口数据信息 + * @param populationListDTO 请求参数 + * @return 人口数据 + */ + @PostMapping("/population/list/app") + R getPopulationListByApp(@RequestBody PagePopulationListDTO populationListDTO); + + /** + * 根据人口id获取人口详情 + * @param populationId + * @return + */ + @GetMapping("/population/detail/app") + R getPopulationDetailByApp(@RequestParam("populationId") Long populationId); + + /** + * 修复人口加密问题 + * @return 修复结果 + */ + @GetMapping("/population/repair") + R getPopulationRepairByApp(); + + /** + * 工作大屏-社区动态模块数据统计 + * @param communityId 社区id + * @return 社区动态数据统计 + */ + @GetMapping("/screen/work/dynamic") + R dynamicWork(@RequestParam("communityId")Long communityId); + + /** + * 查询用户钱包信息 + * @param walletDetailDTO 请求参数 + * @return 用户钱包信息 + */ + @PostMapping("/wallet/get/my") + R getUserWalletDetail(@RequestBody ComActWalletDetailDTO walletDetailDTO); + + /** + * 查询用户收支记录列表 + * @param walletTradeDTO 请求参数 + * @return 收支记录 + */ + @PostMapping("/wallet/get/trade") + R getUserWalletTrade(@RequestBody PageComActWalletTradeDTO walletTradeDTO); + + /** + * 查询用户绑定的社区收益排行榜 + * @param walletTradeDTO 请求参数 + * @return 社区收益排行榜 + */ + @PostMapping("/wallet/get/ranking") + R getWalletRanking(@RequestBody PageComActWalletTradeDTO walletTradeDTO); + + /** + * 综治后台-居民列表 + * @param populationListDTO 请求参数 + * @return 居民列表 + */ + @PostMapping("/population/grid/list") + R getGridPopulationList(@RequestBody ComMngPopulationListDTO populationListDTO); + + /** + * 综治后台-删除居民 + * @param ids 居民id集合 + * @return 删除结果 + */ + @PostMapping("/population/grid/del") + R delGridPopulation(@RequestBody List<Long> ids); + + /** + * 综治后台-居民详情 + * @param populationId 居民id + * @return 居民详情 + */ + @GetMapping("/population/grid/get") + R getGridPopulationDetail(@RequestParam("populationId")Long populationId); + + /** + * 综治app-小区列表 + * @param villageListAppDTO 请求参数 + * @return 小区列表 + */ + @PostMapping("/village/grid/list") + R getGridVillageList(@RequestBody ComMngVillageListAppDTO villageListAppDTO); + + /** + * 综治app-根据小区id查询小区下楼栋列表 + * @param villageId 小区id + * @return 楼栋列表 + */ + @PostMapping("/village/grid/building/list") + R getGridVillageBuildingList(@RequestParam("villageId")Long villageId); + + /** + * 小区楼栋下房屋列表 + * @param buildHouseAppDTO 请求参数 + * @return 房屋列表 + */ + @PostMapping("/village/grid/building/house/list") + R getGridVillageBuildingHouseList(@RequestBody PageComMngVillageBuildHouseAppDTO buildHouseAppDTO); + + /** + * 小区楼栋下房屋信息 + * @param houseId 房屋id + * @return 房屋信息 + */ + @PostMapping("/village/grid/building/house/detail") + R getGridVillageBuildingHouseDetail(@RequestParam("houseId")Long houseId); + + /** + * 查询平台人口列表 + * @param populationDTO 请求参数 + * @return 人口列表 + */ + @PostMapping("/village/grid/building/house/population/list") + R getBuildingHousePopulationList(@RequestBody PageComMngPopulationDTO populationDTO); + + /** + * 批量向房屋新增人员 + * @param housePopulationDTO 请求参数 + * @return 添加结果 + */ + @PostMapping("/village/grid/building/house/add/population") + R addBuildingHousePopulation(@RequestBody AddComMngHousePopulationDTO housePopulationDTO); + + /** + * 批量删除房屋内人员 + * @param housePopulationDTO 请求参数 + * @return 删除结果 + */ + @PostMapping("/village/grid/building/house/del/population") + R delBuildingHousePopulation(@RequestBody DelComMngHousePopulationDTO housePopulationDTO); } -- Gitblit v1.7.1