|
|
@@ -96,7 +96,7 @@ public class KwpGoodsService {
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void addShelves(AddGoodsParam addGoodsParam) {
|
|
|
- if (addGoodsParam.getTrading().startsWith("0") && Objects.isNull(addGoodsParam.getAdvancePrice())) {
|
|
|
+ if (addGoodsParam.getTrading().startsWith("1") && Objects.isNull(addGoodsParam.getAdvancePrice())) {
|
|
|
throw new BusinessException("交易方式为预付款时,预付款最低限额不能为空!");
|
|
|
}
|
|
|
Long entId = LoginUserHolder.getEntId();
|
|
|
@@ -322,7 +322,7 @@ public class KwpGoodsService {
|
|
|
if (StringUtils.isBlank(param.getTrading())) {
|
|
|
throw new BusinessException("交易方式不能为空!");
|
|
|
}
|
|
|
- if (param.getTrading().startsWith("0") && Objects.isNull(param.getAdvancePrice())) {
|
|
|
+ if (param.getTrading().startsWith("1") && Objects.isNull(param.getAdvancePrice())) {
|
|
|
throw new BusinessException("交易方式为预付款时,预付款最低限额不能为空!");
|
|
|
}
|
|
|
|
|
|
@@ -839,7 +839,7 @@ public class KwpGoodsService {
|
|
|
throw new BusinessException("商品不存在或已下架!");
|
|
|
}
|
|
|
BigDecimal amount = goods.getAmount();
|
|
|
- if (!goods.getTrading().startsWith("0")) {
|
|
|
+ if (!goods.getTrading().startsWith("1")) {
|
|
|
return amount;
|
|
|
}
|
|
|
if (Objects.isNull(param.getProcureEntId()) || Objects.isNull(param.getSupplyEntId())) {
|