| | |
| | | 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; |
| | |
| | | { |
| | | @Resource |
| | | private VolunteerMerchantService vmService; |
| | | |
| | | |
| | | @Resource |
| | | private VolunteerIntegralMerchantService vimService; |
| | | |
| | | @Override |
| | | public R getById(String id) { |
| | |
| | | } |
| | | |
| | | @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) |
| | | { |
| | | return R.ok(); |
| | | } |
| | | return R.fail("添加失败"); |
| | | return R.fail("失败"); |
| | | } |
| | | |
| | | @Override |