From f80afdbc853857579ef24f6e679bde4be8b57e39 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 05 十二月 2022 14:15:43 +0800 Subject: [PATCH] Merge branch 'local_20221104' into huacheng_test --- 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