From a2d195682479469b216785b7c71c8c241410340d Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期四, 20 五月 2021 12:26:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 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 cfe0ea8..c707b87 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 @@ -1,6 +1,7 @@ package com.panzhihua.service_community.api; import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -13,7 +14,9 @@ import com.panzhihua.common.model.vos.community.questnaire.QuestnaireVO; import com.panzhihua.common.model.vos.community.questnaire.UsersAnswerQuestnaireVO; import com.panzhihua.common.model.vos.user.ComMngFamilyInfoVO; +import com.panzhihua.common.model.vos.user.SysUserNoticeVO; import com.panzhihua.common.model.vos.user.UserPhoneVO; +import com.panzhihua.common.service.user.UserService; import com.panzhihua.common.utlis.ClazzUtils; import com.panzhihua.common.utlis.IdCard; import com.panzhihua.common.utlis.IdCardUtil; @@ -71,7 +74,8 @@ private ComActMessageService comActMessageService; @Resource private ComActQuestnaireService comActQuestnaireService; - + @Resource + private UserService userService; @Resource private EldersAuthService eldersAuthService; @Resource @@ -1596,6 +1600,28 @@ @PostMapping("/eldersauth/addFeedback") R add(@RequestBody EldersAuthFeedbackAddDTO eldersAuthFeedbackAddDTO){ ClazzUtils.setIfStringIsEmpty(eldersAuthFeedbackAddDTO); + EldersAuthDO eldersAuthDO = eldersAuthService.getBaseMapper().selectById(eldersAuthFeedbackAddDTO.getAuthId()); + if(eldersAuthDO==null){ + return R.fail("认证记录不存在"); + } + R addR = eldersAuthService.addFeedback(eldersAuthFeedbackAddDTO); + if(R.isOk(addR)){ + SysUserNoticeVO sysUserNoticeVO=new SysUserNoticeVO(); + sysUserNoticeVO.setUserId(eldersAuthDO.getSumitUserId()); + sysUserNoticeVO.setType(1); + sysUserNoticeVO.setTitle("高龄认证社区社区反馈"); + sysUserNoticeVO.setBusinessType(13); + sysUserNoticeVO.setBusinessTitle(" "); + sysUserNoticeVO.setBusinessContent("你提交【" +eldersAuthDO.getAuthUserName() + "】的高龄认证,社区进行了反馈"); + sysUserNoticeVO.setBusinessId(eldersAuthDO.getId()); + sysUserNoticeVO.setStatus(0); + sysUserNoticeVO.setBusinessStatus(2); + R r1 = userService.addNotice(sysUserNoticeVO); + if (R.isOk(r1)) { + log.info("新增用户报名党建活动通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); + } + } + return eldersAuthService.addFeedback(eldersAuthFeedbackAddDTO); } -- Gitblit v1.7.1