From 11899dc62d10c1c7778fbebb631f5ee25705b7db Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期四, 17 十一月 2022 21:36:08 +0800 Subject: [PATCH] Merge branch 'huacheng_test' into haucheng_panzhihua --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java index 811b9d9..772e017 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java @@ -3,6 +3,7 @@ import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.panzhihua.applets.weixin.CheckService; +import com.panzhihua.common.constants.Constants; import com.panzhihua.common.controller.BaseController; import com.panzhihua.common.model.dtos.common.PageComMngVolunteerOrgTeamDto; import com.panzhihua.common.model.dtos.common.PageComMngVolunteerServiceTypeDto; @@ -167,7 +168,7 @@ if (StrUtil.isNotBlank(evaluateContent)) { String result = checkService.checkMessageBy(evaluateContent, openid, appId); if (StrUtil.isNotBlank(result)) { - return R.fail("填写内容存在 " + result + " 违规信息"); + return R.fail(501, "填写内容存在 " + result + " 违规信息"); } } @@ -175,7 +176,7 @@ String photo = comActActEvaluateVO.getPhoto(); if (StrUtil.isNotBlank(photo)) { if (!checkService.checkImageBy(photo, appId)) { - return R.fail("上传图片存在违规信息"); + return R.fail(501, "上传图片存在违规信息"); } } return communityService.activityEvaluate(comActActEvaluateVO); @@ -463,4 +464,10 @@ public R detailCommunity(@RequestParam("id") Long id) { return communityService.detailCommunity(id); } + + @ApiOperation(value = "获取问题清单,需求清单,报道服务活动数量",response = DataCount.class) + @GetMapping("/dataCount") + public R dataCount(){ + return communityService.dataCount(); + } } -- Gitblit v1.7.1