...
|
...
|
@@ -47,8 +47,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
|
@Value("${deposit.prestore}")
|
|
|
private Double depositPreStore;
|
|
|
|
|
|
@Value("${deposit.earnestMoneyDepositLimit:100}")
|
|
|
private BigDecimal earnestMoneyDepositLimit;
|
|
|
@Value("${deposit.earnest.money.limit:100}")
|
|
|
private BigDecimal depositEarnestMoneyLimit;
|
|
|
|
|
|
@Autowired
|
|
|
UfoServiceCaller ufoServiceCaller;
|
...
|
...
|
@@ -118,8 +118,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
|
}
|
|
|
BigDecimal totalEarnestMoney = sw.getAmount();
|
|
|
|
|
|
if (totalEarnestMoney.add(amount).compareTo(earnestMoneyDepositLimit) > 0) {
|
|
|
throw new UfoServiceException(400, "账户余额不能超过" + earnestMoneyDepositLimit);
|
|
|
if (totalEarnestMoney.add(amount).compareTo(depositEarnestMoneyLimit) > 0) {
|
|
|
throw new UfoServiceException(400, "账户余额不能超过" + depositEarnestMoneyLimit);
|
|
|
}
|
|
|
|
|
|
// 生成订单号
|
...
|
...
|
|