lidongdong
2023-09-07 862c88a81a3fd0cab70467f3c147317e635fd40b
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)
        {