lidongdong
2023-09-06 29e6855302b602f8dc3fac25c5e123d2646cf552
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerMerchantApi.java
@@ -5,6 +5,9 @@
import com.panzhihua.common.model.vos.community.VolunteerMerchantVO;
import com.panzhihua.common.model.vos.community.VolunteerMerchantWithdrawVO;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.entity.VolunteerCommunityConfig;
import com.panzhihua.service_community.entity.VolunteerCommunityConfigVO;
import com.panzhihua.service_community.service.VolunteerCommunityConfigService;
import com.panzhihua.service_community.service.VolunteerMerchantEvaluateService;
import com.panzhihua.service_community.service.VolunteerMerchantService;
import com.panzhihua.service_community.service.VolunteerMerchantWithdrawService;
@@ -235,6 +238,42 @@
    /***************************************************************************************************************
     *
     *                               路北社区系统配置   商家折扣      兑换地点信息
     *
     ****************************************************************************************************************/
    @Resource
    private VolunteerCommunityConfigService vccService;
    /**
     * 详情
     * @param
     * @return
     */
    @GetMapping("/Community/Config/getData")
    public R ConfiggetData(@RequestParam("communityId") String communityId)
    {
        return vccService.getData(communityId);
    }
    /**
     * 新增
     * @param
     * @return
     */
    @PostMapping("/Community/Config/insertvo")
    public R Configinsertvo(@RequestBody VolunteerCommunityConfigVO item)
    {
        R<VolunteerCommunityConfig> voR=vccService.getData(item.getCommunityId());
        if(voR==null)
        {
            return vccService.insertvo(item);
        }
        else
        {
            return vccService.update(item);
        }
    }
}