From a29b1de93a428c9dd16532041a85597eaead8573 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期五, 25 八月 2023 11:28:10 +0800 Subject: [PATCH] 新增积分商城模块(新增商品 编辑商品 删除商品 商品列表) 修改活动人员统计为0 修改小程序活动报名报错 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerActivityApi.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerActivityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerActivityApi.java index c3c9f98..fb0d6a1 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerActivityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerActivityApi.java @@ -1,7 +1,9 @@ package com.panzhihua.service_community.api; +import com.panzhihua.common.controller.BaseController; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.community.VolunteerActivityVO; +import com.panzhihua.common.utlis.StringUtils; import com.panzhihua.service_community.service.VolunteerActivityService; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.*; @@ -12,7 +14,7 @@ @Slf4j @RestController @RequestMapping("/Volunteer") -public class VolunteerActivityApi +public class VolunteerActivityApi extends BaseController { @Resource private VolunteerActivityService volunteerActivityService; @@ -54,6 +56,10 @@ @PostMapping("/insertVolunteer") R insertVolunteer(@RequestBody VolunteerActivityVO volunteerActivityVO) { + if(StringUtils.isEmpty(volunteerActivityVO.getCommunityId())) + { + volunteerActivityVO.setCommunityId(getCommunityId()+""); + } int num = volunteerActivityService.insertVolunteer(volunteerActivityVO); if(num>0) { -- Gitblit v1.7.1