|
|
@@ -57,7 +57,7 @@ public class DistributeServiceImpl implements DistributeService {
|
|
|
throw new BusinessRuntimeException("比例错误");
|
|
|
}
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(rate.getGoodsId());
|
|
|
- if (goodsDon == null || !goodsDon.getDeleted() || goodsDon.getType() == 2) {
|
|
|
+ if (goodsDon == null || !goodsDon.getDeleted() || goodsDon.getType() == 3) {
|
|
|
throw new BusinessRuntimeException("平台错误");
|
|
|
}
|
|
|
rate.setDistributeId(userDistribute.getId());
|
|
|
@@ -79,7 +79,7 @@ public class DistributeServiceImpl implements DistributeService {
|
|
|
throw new BusinessRuntimeException("比例错误");
|
|
|
}
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(rate.getGoodsId());
|
|
|
- if (goodsDon == null || !goodsDon.getDeleted() || goodsDon.getType() == 2) {
|
|
|
+ if (goodsDon == null || !goodsDon.getDeleted() || goodsDon.getType() == 3) {
|
|
|
throw new BusinessRuntimeException("平台错误");
|
|
|
}
|
|
|
rate.setDistributeId(userDistribute.getId());
|