lidongdong
2023-11-14 ce4a770744d7a0b4e4ea3b5101556b94e72bdf1c
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantServiceImpl.java
@@ -12,6 +12,7 @@
import com.panzhihua.service_community.entity.VolunteerActivity;
import com.panzhihua.service_community.entity.VolunteerMerchant;
import com.panzhihua.service_community.entity.VolunteerType;
import com.panzhihua.service_community.service.VolunteerIntegralMerchantService;
import com.panzhihua.service_community.service.VolunteerMerchantService;
import com.panzhihua.service_community.service.VolunteerTypeService;
import lombok.extern.slf4j.Slf4j;
@@ -27,6 +28,10 @@
{
    @Resource
    private VolunteerMerchantService vmService;
    @Resource
    private VolunteerIntegralMerchantService vimService;
    @Override
    public R getById(String id) {
@@ -155,7 +160,16 @@
    }
    @Override
    public R deleteVolunteerMerchant(String id) {
    public R deleteVolunteerMerchant(String id)
    {
        int goodNum=vimService.getNum(id);
        if(goodNum>0)
        {
            return R.fail("请下架所有商铺商品");
        }
        int num= baseMapper.delete(id);
        if(num>0)
        {