From 7bfa6a85ad6a6c537b0f7ddb9f6a8795c8e8c866 Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期四, 09 六月 2022 16:44:24 +0800 Subject: [PATCH] 五社&社区企业&人大代表 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java | 532 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 501 insertions(+), 31 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 da1c664..27f2aa3 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 @@ -2,33 +2,12 @@ import java.util.List; -import com.panzhihua.common.model.dtos.PageBaseDTO; -import com.panzhihua.common.model.dtos.civil.*; -import com.panzhihua.common.model.dtos.community.warehouse.ComActWarehouseApplyDTO; -import com.panzhihua.common.model.dtos.community.GetIdentityEidTokenDTO; -import com.panzhihua.common.model.dtos.community.*; -import com.panzhihua.common.model.dtos.community.building.admin.*; -import com.panzhihua.common.model.dtos.community.cluster.PageClusterMemberDto; -import com.panzhihua.common.model.dtos.community.cluster.admin.*; -import com.panzhihua.common.model.dtos.property.CommonPage; -import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussDetailDTO; -import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussPublishResultDTO; -import com.panzhihua.common.model.dtos.community.elder.ElderAuthStatisticHeaderDTO; -import com.panzhihua.common.model.dtos.community.elder.PageElderAuthStatisticDTO; -import com.panzhihua.common.model.dtos.community.elder.PagePensionAuthStatisticDTO; -import com.panzhihua.common.model.dtos.community.elder.SignElderAuthStatisticDTO; -import com.panzhihua.common.model.dtos.neighbor.*; -import com.panzhihua.common.model.vos.*; -import com.panzhihua.common.model.vos.civil.ComActSocialWorkerDetailsVO; -import com.panzhihua.common.model.vos.civil.ComActSocialWorkerVO; -import com.panzhihua.common.model.vos.community.*; -import com.panzhihua.common.model.vos.community.cluster.admin.ComClusterMemberExcelVO; -import com.panzhihua.common.model.vos.community.raffle.ComActRaffleRecordVO; -import com.panzhihua.common.model.vos.community.raffle.ComActRaffleVO; -import com.panzhihua.common.model.vos.community.social.*; -import io.swagger.annotations.ApiOperation; -import com.panzhihua.common.model.vos.community.*; -import org.springframework.beans.BeanUtils; +import com.panzhihua.common.model.dtos.community.dpc.AddDpcDTO; +import com.panzhihua.common.model.dtos.community.dpc.EditDpcDTO; +import com.panzhihua.common.model.dtos.community.dpc.PageDpcDTO; +import com.panzhihua.common.model.dtos.community.enterprise.AddEnterpriseTypeDTO; +import com.panzhihua.common.model.dtos.community.enterprise.EditEnterpriseTypeDTO; +import com.panzhihua.common.model.dtos.community.enterprise.PageEnterpriseTypeDTO; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.scheduling.annotation.Async; import org.springframework.web.bind.annotation.DeleteMapping; @@ -52,9 +31,11 @@ import com.panzhihua.common.model.dtos.common.AddComMngVolunteerOrgTeamDto; import com.panzhihua.common.model.dtos.common.AddComMngVolunteerServiceTypeDto; import com.panzhihua.common.model.dtos.common.AddComMngVolunteerSkillDto; +import com.panzhihua.common.model.dtos.common.EditComActEasyPhotoHandlerDto; import com.panzhihua.common.model.dtos.common.EditComMngVolunteerOrgTeamDto; import com.panzhihua.common.model.dtos.common.EditComMngVolunteerServiceTypeDto; import com.panzhihua.common.model.dtos.common.EditComMngVolunteerSkillDto; +import com.panzhihua.common.model.dtos.common.PageComActEasyPhotoHandlerDto; import com.panzhihua.common.model.dtos.common.PageComMngVolunteerOrgTeamDto; import com.panzhihua.common.model.dtos.common.PageComMngVolunteerServiceTypeDto; import com.panzhihua.common.model.dtos.common.PageComMngVolunteerSkillDto; @@ -189,6 +170,9 @@ import com.panzhihua.common.model.dtos.community.elder.PageElderAuthStatisticDTO; import com.panzhihua.common.model.dtos.community.elder.PagePensionAuthStatisticDTO; import com.panzhihua.common.model.dtos.community.elder.SignElderAuthStatisticDTO; +import com.panzhihua.common.model.dtos.community.enterprise.AddEnterpriseDTO; +import com.panzhihua.common.model.dtos.community.enterprise.EditEnterpriseDTO; +import com.panzhihua.common.model.dtos.community.enterprise.PageEnterpriseDTO; import com.panzhihua.common.model.dtos.community.fms.AddFmsClassroomAdminDTO; import com.panzhihua.common.model.dtos.community.fms.AddFmsServiceAdminDTO; import com.panzhihua.common.model.dtos.community.fms.AddTeamDTO; @@ -253,6 +237,12 @@ import com.panzhihua.common.model.dtos.community.reserve.PageReserveMakeAdminDTO; import com.panzhihua.common.model.dtos.community.reserve.PageReserveMakeHandleAdminDTO; import com.panzhihua.common.model.dtos.community.reserve.PageReserveRegisterDetailedAdminDTO; +import com.panzhihua.common.model.dtos.community.social.HatchAuditProcessDTO; +import com.panzhihua.common.model.dtos.community.social.PageProjectDTO; +import com.panzhihua.common.model.dtos.community.social.PageProjectSignListDTO; +import com.panzhihua.common.model.dtos.community.social.PageSocialOrgHatchAuditDTO; +import com.panzhihua.common.model.dtos.community.social.PageSocialOrgHatchDTO; +import com.panzhihua.common.model.dtos.community.social.SocialOrgHatchAuditDTO; import com.panzhihua.common.model.dtos.community.switchs.SearchCommunityDTO; import com.panzhihua.common.model.dtos.community.wallet.ComActWalletDetailDTO; import com.panzhihua.common.model.dtos.community.wallet.ComActWalletSettlementAdminDTO; @@ -329,7 +319,7 @@ import com.panzhihua.common.model.vos.DictionaryVO; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.SystemmanagementConfigVO; -import com.panzhihua.common.model.vos.civil.ComActSocialWorkerDetailsVO; +import com.panzhihua.common.model.vos.civil.ComActSocialWorkerVO; import com.panzhihua.common.model.vos.community.ActivitySignVO; import com.panzhihua.common.model.vos.community.BatchhouseVO; import com.panzhihua.common.model.vos.community.ComActActEvaluateVO; @@ -2278,10 +2268,11 @@ * * @param provinceAdcode * 省份code + * @param areaCode * @return 查询结果 */ @GetMapping("/common/data/area/all") - R getCityTreeByProvinceCode(@RequestParam(value = "provinceAdcode") Integer provinceAdcode); + R getCityTreeByProvinceCode(@RequestParam(value = "provinceAdcode") Integer provinceAdcode, @RequestParam(value = "areaCode", required = false) String areaCode); /** * 分页查询街道 @@ -7620,7 +7611,7 @@ @GetMapping("/rentingHourseRegister/updateAllHouseUnionAppCode") @Async - void updateAllHouseUnionAppCode(); + void updateAllHouseUnionAppCode(@RequestParam("areaCode") String areaCode); /** * 西区大屏治理数据 @@ -8754,10 +8745,11 @@ /** * 小程序详情接口 * @param id + * @param userId * @return */ @GetMapping("/comActSocialProject/getApplet") - R getAppletComActSocialProject(@RequestParam("id") Long id); + R getAppletComActSocialProject(@RequestParam("id") Long id, @RequestParam(value = "userId", required = false) Long userId); /** * 分页查询所有数据 @@ -9367,4 +9359,482 @@ */ @GetMapping("/building/getBuildListByVillageId") R getBuildListByVillageId(@RequestParam(value = "villageId") Long villageId); + /** + * 党员活动详情数据 + * @return + */ + @PostMapping("/activity/partyMemberDetail") + R partyMemberDetail(@RequestBody CommonPage commonPage); + /** + * 导出党员活动详情数据 + * @return + */ + @PostMapping("/activity/exportPartyMemberDetail") + R exportPartyMemberDetail(@RequestBody CommonPage commonPage); + + /** + * 金沙定制页面-党建引领基础数据 + * @param communityId + * @return + */ + @GetMapping("/screen/partyBuildIng/base") + R getPartyBuildIngBaseData(@RequestParam("communityId") Long communityId); + + /** + * 党员活动展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/partyBuildIng/partyAct") + R pagePartyBuildIngAct(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 议事投票展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/partyBuildIng/discuss") + R pagePartyBuildIngDiscuss(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 金沙定制页面-四长四员 + * @param communityId + * @return + */ + @GetMapping("/screen/fourMember/base") + R getFourMemberBaseData(@RequestParam("communityId") Long communityId); + + /** + * 杨家坪定制页面-五微服务 + * @param communityId + * @return + */ + @GetMapping("/screen/fms/base") + R getFmsBaseData(@RequestParam("communityId") Long communityId); + + /** + * 杨家坪定制页面-微团队展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/fms/team") + R pageFmsTeam(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 杨家坪定制页面-居家养老基础数据 + * @param communityId + * @return + */ + @GetMapping("/screen/alarm/base") + R getAlarmBaseData(@RequestParam("communityId") Long communityId); + + /** + * 杨家坪定制页面-报警记录展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/alarm/record") + R pageAlarmRecord(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 杨家坪定制页面-报警设备点位图 + * @param communityId + * @return + */ + @GetMapping("/screen/alarm/pointMap") + R getAlarmPointMap(@RequestParam("communityId") Long communityId); + + /** + * 杨家坪定制页面-志愿服务 + * @param communityId + * @return + */ + @GetMapping("/screen/volunteer/base") + R getVolunteerBaseData(@RequestParam("communityId") Long communityId); + + /** + * 金沙定制页面-志愿线展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/partyBuildIng/microWish") + R pagePartyBuildIngMicroWish(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 金沙定制页面-四长四员解决问题展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/fourMember/resolve") + R pageFourMemberResolve(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 金沙定制页面-四长四员院落议事展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/courtyard/list") + R pageCourtyardDiscuss(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 金沙定制页面-院落议事 + * @param communityId + * @return + */ + @GetMapping("/screen/courtyard/base") + R getCourtyardBaseData(@RequestParam("communityId") Long communityId); + + /** + * description queryByPage 分页查询 + * + * @param comActEasyPhotoHandler 请求参数 + * @return 分页查询返回参数 + * @author lyq + * @date 2022-03-01 13:45:10 + */ + @PostMapping("/comActEasyPhotoHandler/page") + R queryEasyPhotoHandler(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler); + + /** + * description edit 编辑数据 + * + * @param comActEasyPhotoHandler 请求参数 + * @return 编辑结果 + * @author lyq + * @date 2022-03-01 13:45:10 + */ + @PostMapping("/comActEasyPhotoHandler/edit") + R editEasyPhotoHandler(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler); + + @GetMapping("/reserve/fiveCount") + R fiveCount(@RequestParam("reserveId") Long reserveId); + + /** + * 批量删除活动 + * @param ids + * @return + */ + @PostMapping("batchDel") + R deleteActivities(@RequestBody List<Long> ids); + + /** + * 街道详情 + * @param id + * @return + */ + @GetMapping("detailStreet") + R detailStreet(@RequestParam("id") Long id); + + /** + * 分页查询项目报名列表 + * @param pageProjectSignListDTO + * @return + */ + @PostMapping("/comActSocialProject/signList") + R pageProjectSignList(@RequestBody PageProjectSignListDTO pageProjectSignListDTO); + + /** + * 分页查询孵化申请 + * @param pageHatchAuditDTO + * @return + */ + @PostMapping("/comActSocialOrgHatchAudit/page") + R pageHatchAudit(@RequestBody PageSocialOrgHatchAuditDTO pageHatchAuditDTO); + + /** + * 查看孵化申请详情 + * @param id + * @return + */ + @GetMapping("/comActSocialOrgHatchAudit/detail") + R detailHatchAudit(@RequestParam("id") Long id); + + /** + * 修改孵化申请 + * @param hatchAuditDTO + * @return + */ + @PostMapping("/comActSocialOrgHatchAudit/update") + R updateHatchAudit(@RequestBody SocialOrgHatchAuditDTO hatchAuditDTO); + + /** + * 分页查询孵化数据 + * @param pageHatchDTO + * @return + */ + @PostMapping("/comActSocialOrgHatch/page") + R pageOrgHatch(@RequestBody PageSocialOrgHatchDTO pageHatchDTO); + + /** + * 查看孵化数据详情 + * @param id + * @return + */ + @GetMapping("/comActSocialOrgHatch/detail") + R detailOrgHatch(@RequestParam("id") Long id); + + /** + * 修改孵化状态 + * @param id + * @param status + * @return + */ + @PutMapping("/comActSocialOrgHatch/updateStatus") + R updateOrgHatchStatus(@RequestParam("id") Long id, @RequestParam("status") Integer status); + + /** + * 获取孵化流程配置 + * @return + */ + @GetMapping("/comActSocialOrgHatchAudit/process") + R getHatchAuditProcess(); + + /** + * 修改孵化流程配置 + * @param processDTO + * @return + */ + @PutMapping("/comActSocialOrgHatchAudit/process") + R putHatchAuditProcess(@RequestBody HatchAuditProcessDTO processDTO); + + /** + * 新增孵化申请 + * @param hatchAuditDTO + * @return + */ + @PostMapping("/comActSocialOrgHatchAudit/add") + R addHatchAudit(@RequestBody SocialOrgHatchAuditDTO hatchAuditDTO); + + /** + * 查看孵化申请审核进度 + * @param userId + * @return + */ + @GetMapping("/comActSocialOrgHatchAudit/schedule") + R getHatchAuditSchedule(@RequestParam("userId") Long userId); + + /** + * 项目公开报名 + * @param projectId + * @param userId + * @return + */ + @GetMapping("/comActSocialProject/sign") + R signProject(@RequestParam("projectId") Long projectId, @RequestParam("userId") Long userId); + + /** + * 分页查询用户报名的项目 + * @param pageProjectDTO + * @return + */ + @PostMapping("/comActSocialProject/project") + R pageProjectWhichIsSignedByUser(@RequestBody PageProjectDTO pageProjectDTO); + + /** + * 删除孵化申请详情 + * @param id + * @return + */ + @GetMapping("/comActSocialOrgHatchAudit/delete") + R deleteHatchAudit(@RequestParam("id") Long id); + + /** + * 删除孵化数据 + * @param id + * @return + */ + @GetMapping("/comActSocialOrgHatch/delete") + R deleteOrgHatch(@RequestParam("id") Long id); + + /** + * 新增社区企业 + * @param addEnterpriseDTO + * @return + */ + @PostMapping("/enterprise/add") + R addEnterprise(@RequestBody AddEnterpriseDTO addEnterpriseDTO); + + /** + * 修改社区企业 + * @param editEnterpriseDTO + * @return + */ + @PostMapping("/enterprise/edit") + R editEnterprise(@RequestBody EditEnterpriseDTO editEnterpriseDTO); + + /** + * 删除社区企业 + * @param id + * @return + */ + @DeleteMapping("/enterprise/delete") + R deleteEnterprise(@RequestParam("id") Long id); + + /** + * 获取社区企业详情 + * @param id + * @return + */ + @GetMapping("/enterprise/detail") + R detailEnterprise(@RequestParam("id") Long id); + + /** + * 分页查询社区企业 + * @param pageEnterpriseDTO + * @return + */ + @PostMapping("/enterprise/page") + R pageEnterprise(@RequestBody PageEnterpriseDTO pageEnterpriseDTO); + + /** + * 孵化中心-基础数据 + * @param communityId + * @return + */ + @GetMapping("/screen/hatch/base") + R getHatchBaseData(@RequestParam("communityId") Long communityId); + + /** + * 孵化中心-孵化成果展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/hatchResult/list") + R pageHatchResult(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 孵化中心-孵化进度展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/hatchSchedule/list") + R pageHatchSchedule(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 五社联动基础数据 + * @param communityId + * @return + */ + @GetMapping("/screen/fiveAssociations/base") + R getFiveAssociationsBaseData(@RequestParam("communityId") Long communityId); + + /** + * 五社联动项目展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/socialProject/list") + R pageSocialProjectList(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 五社联动社会组织展示列表 + * @param pageBaseDTO + * @return + */ + @PostMapping("/screen/socialOrg/list") + R pageSocialOrgList(@RequestBody PageBaseDTO pageBaseDTO); + + /** + * 新增服务分类 + * @param addEnterpriseTypeDTO + * @return + */ + @PostMapping("/enterpriseType/add") + R addEnterpriseType(@RequestBody AddEnterpriseTypeDTO addEnterpriseTypeDTO); + + /** + * 修改服务分类 + * @param enterpriseTypeDTO + * @return + */ + @PostMapping("/enterpriseType/edit") + R editEnterpriseType(@RequestBody EditEnterpriseTypeDTO enterpriseTypeDTO); + + /** + * 删除服务分类 + * @param id + * @return + */ + @DeleteMapping("/enterpriseType/delete") + R deleteEnterpriseType(@RequestParam("id") Long id); + + /** + * 获取服务分类详情 + * @param id + * @return + */ + @GetMapping("/enterpriseType/detail") + R detailEnterpriseType(@RequestParam("id") Long id); + + /** + * 分页查询服务分类 + * @param pageEnterpriseTypeDTO + * @return + */ + @PostMapping("/enterpriseType/page") + R pageEnterpriseType(@RequestBody PageEnterpriseTypeDTO pageEnterpriseTypeDTO); + + /** + * 获取服务分类列表 + * @param communityId + * @return + */ + @GetMapping("/enterpriseType/list") + R getEnterpriseTypeList(@RequestParam("communityId") Long communityId); + + /** + * 新增人大代表 + * @param addDpcDTO + * @return + */ + @PostMapping("/dpc/add") + R addDpc(@RequestBody AddDpcDTO addDpcDTO); + + /** + * 修改人大代表 + * @param editDpcDTO + * @return + */ + @PostMapping("/dpc/edit") + R editDpc(@RequestBody EditDpcDTO editDpcDTO); + + /** + * 删除人大代表 + * @param id + * @return + */ + @DeleteMapping("/dpc/delete") + R deleteDpc(@RequestParam("id") Long id); + + /** + * 获取人大代表详情 + * @param id + * @return + */ + @GetMapping("/dpc/detail") + R detailDpc(@RequestParam("id") Long id); + + /** + * 分页查询人大代表 + * @param pageDpcDTO + * @return + */ + @PostMapping("/dpc/page") + R pageDpc(@RequestBody PageDpcDTO pageDpcDTO); + + /** + * 获取人大代表反馈记录 + * @param id + * @return + */ + @GetMapping("/dpc/feedback") + R getFeedbackList(@RequestParam("id") Long id); + + /** + * 人大代表反馈随手拍 + * @param comActEasyPhotoVO + * @return + */ + @PostMapping("/dpc/feedback") + R addEasyPhotoFeedbackForDpc(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO); } -- Gitblit v1.7.1