|
@@ -194,6 +194,9 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
|
|
|
.eq(YhShopUserBusinessDefaultRateConfig::getGoodsId, rateConfig.getGoodsId()));
|
|
.eq(YhShopUserBusinessDefaultRateConfig::getGoodsId, rateConfig.getGoodsId()));
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (config.getRate() == null || config.getRate() < 0 || config.getRate() > 100) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("请输入正确的比例");
|
|
|
|
|
+ }
|
|
|
if (rateConfig.getId() == null) {
|
|
if (rateConfig.getId() == null) {
|
|
|
try {
|
|
try {
|
|
|
yhShopUserBusinessDefaultRateConfigMapper.insert(config);
|
|
yhShopUserBusinessDefaultRateConfigMapper.insert(config);
|