|
@@ -80,7 +80,7 @@ public class DistributeServiceImpl implements DistributeService {
|
|
|
throw new BusinessRuntimeException("比例错误");
|
|
throw new BusinessRuntimeException("比例错误");
|
|
|
}
|
|
}
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(rate.getGoodsId());
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(rate.getGoodsId());
|
|
|
- if (rate.getId() != null) {
|
|
|
|
|
|
|
+ if (rate.getId() != null && (goodsDon == null || !goodsDon.getDeleted())) {
|
|
|
userPlatDistributeRateMapper.deleteById(rate.getId());
|
|
userPlatDistributeRateMapper.deleteById(rate.getId());
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|