|
|
@@ -199,7 +199,7 @@ public class DistributeController {
|
|
|
throw new BusinessRuntimeException("比例错误");
|
|
|
}
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(rate.getGoodsId());
|
|
|
- if (goodsDon == null || goodsDon.getType() == 2) {
|
|
|
+ if (goodsDon == null || goodsDon.getType() == 3) {
|
|
|
throw new BusinessRuntimeException("平台错误");
|
|
|
}
|
|
|
goodsDon.setRate(rate.getRate());
|