From b30e1a48f2bc5f65a0efd2e69e090fed2d7a627c Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期四, 17 十一月 2022 15:56:43 +0800 Subject: [PATCH] #feat 订单退款和查询 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java | 29 +++++++++++++++++++++++++++-- 1 files changed, 27 insertions(+), 2 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 b48296f..b66f891 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 @@ -9,11 +9,14 @@ import javax.annotation.Resource; import javax.validation.Valid; +import cn.hutool.core.util.StrUtil; import com.panzhihua.applets.umf.UmfPayUtil; +import com.panzhihua.common.constants.Constants; import com.panzhihua.common.constants.HttpStatus; import com.panzhihua.common.model.dtos.community.social.PageProjectDTO; import com.panzhihua.common.model.vos.community.rentHouse.WxPayOrderVO; import com.panzhihua.common.utlis.DateUtils; +import io.swagger.annotations.ApiParam; import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.data.redis.core.StringRedisTemplate; @@ -397,8 +400,11 @@ public R addFeedback(@RequestBody @Validated(AddGroup.class) SysUserFeedbackDTO sysUserFeedbackDTO) { // 微信内容审核 String msg = sysUserFeedbackDTO.getContent(); - if (!checkService.checkMessage(msg)) { - return R.fail("内容违规"); + if (StrUtil.isNotBlank(msg)) { + String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); + if (StrUtil.isNotBlank(result)) { + return R.fail(501, "填写内容存在 " + result + " 违规信息"); + } } LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); Long userId = loginUserInfo.getUserId(); @@ -519,4 +525,23 @@ pageProjectDTO.setUserId(this.getUserId()); return communityService.pageProjectWhichIsSignedByUser(pageProjectDTO); } + + @ApiOperation("获取用户") + @GetMapping("selectAutomessageSysUserById") + public R selectAutomessageSysUserById(@RequestParam("id")Long id){ + return communityService.selectAutomessageSysUserById(id); + } + + @ApiOperation("新增投诉建议或问题留言") + @PostMapping("addFeedBack") + public R addFeedBack(@RequestBody SysUserFeedbackDTO sysUserFeedbackDTO){ + return userService.addFeedback(sysUserFeedbackDTO); + } + + @ApiOperation("查看自己的投诉建议或问题留言记录") + @GetMapping("myFeedBack") + public R myFeedBack(@ApiParam("类型:1问题留言2投诉建议") @RequestParam(value = "type",required = false)Integer type){ + return userService.myFeedBack(this.getLoginUserInfo().getUserId(),type); + } + } -- Gitblit v1.7.1