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)
        {