From 5f800e667f66b912b1ae984269a0d4c3c0258fa9 Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期二, 19 一月 2021 16:41:48 +0800 Subject: [PATCH] bug --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java index cc4180b..37e53c1 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java @@ -2,6 +2,7 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; import com.panzhihua.common.model.vos.community.*; import com.panzhihua.common.model.vos.user.ComMngFamilyInfoVO; import com.panzhihua.common.model.vos.user.UserPhoneVO; @@ -207,6 +208,13 @@ Long userId = this.getUserId(); comActMicroWishVO.setUserId(userId); comActMicroWishVO.setCommunityId(null); + Integer status = comActMicroWishVO.getStatus(); + if (null!=status&&status==1) { + comActMicroWishVO.setIsPageMyWish(1); + }else{ + comActMicroWishVO.setIsPageMyWish(null); + } + return communityService.pageMicroWish(comActMicroWishVO); } @@ -240,5 +248,21 @@ return userService.deleteUserTest(userId); } + @ApiOperation(value = "意见反馈" ) + @PostMapping("feedback") + public R addFeedback(@RequestBody @Validated(AddGroup.class) SysUserFeedbackDTO sysUserFeedbackDTO) { + LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); + Long userId = loginUserInfo.getUserId(); + Long communityId = loginUserInfo.getCommunityId(); + Long areaId = loginUserInfo.getAreaId(); + if (null==communityId||0==communityId) { + return R.fail("未绑定社区"); + } + sysUserFeedbackDTO.setCommunityId(communityId); + sysUserFeedbackDTO.setAreaId(areaId); + sysUserFeedbackDTO.setUserId(userId); + return userService.addFeedback(sysUserFeedbackDTO); + } + } -- Gitblit v1.7.1