From 179d1fc7eb24ee7e53c930d01c94d72740dd95f2 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期日, 24 四月 2022 16:24:30 +0800 Subject: [PATCH] 花城E+防疫修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java index 4941a19..f6e1f27 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java @@ -8,6 +8,8 @@ import javax.annotation.Resource; +import com.panzhihua.common.model.dtos.property.CommonPage; +import com.panzhihua.common.model.vos.LoginUserInfoVO; import com.panzhihua.common.model.vos.community.ComActActivityTypeVO; import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO; import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; @@ -1192,8 +1194,8 @@ * @return 类型列表 */ @PostMapping("listbuildtype") - public R listBuildType() { - return comMngStructOtherBuildService.listBuildType(); + public R listBuildType(@RequestParam("communityId")Long communityId) { + return comMngStructOtherBuildService.listBuildType(communityId); } /** @@ -1217,6 +1219,15 @@ */ @PostMapping("addvolunteer") R addVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO) { + Long submitUserId = comMngVolunteerMngVO.getSubmitUserId(); + if (Objects.nonNull(submitUserId)) { + //获取小程序用户信息 + R<LoginUserInfoVO> userInfoR = userService.getUserInfoByUserId(submitUserId.toString()); + LoginUserInfoVO userInfo = userInfoR.getData(); + if (Objects.nonNull(userInfo)) { + comMngVolunteerMngVO.setIdCard(userInfo.getIdCard()); + } + } return comMngVolunteerMngService.addVolunteer(comMngVolunteerMngVO); } @@ -2573,4 +2584,23 @@ public R partyMemberCount(@RequestParam("communityId")Long communityId,@RequestParam("year")String year){ return comActActivityService.partyMemberCount(communityId,year); } + + /** + * 党员活动详情数据 + * @return + */ + @PostMapping("activity/partyMemberDetail") + public R partyMemberDetail(@RequestBody CommonPage commonPage){ + return comActActivityService.partyMemberDetail(commonPage); + } + + + /** + * 导出党员活动详情数据 + * @return + */ + @PostMapping("activity/exportPartyMemberDetail") + public R exportPartyMemberDetail(@RequestBody CommonPage commonPage){ + return comActActivityService.exportPartyMemberDetail(commonPage); + } } -- Gitblit v1.7.1