...
|
...
|
@@ -47,8 +47,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
|
@Value("${deposit.prestore}")
|
|
|
private Double depositPreStore;
|
|
|
|
|
|
@Value("${deposit.earnestMoneyDepositLimit:100}")
|
|
|
private BigDecimal earnestMoneyDepositLimit;
|
|
|
private BigDecimal depositEarnestMoneyLimit;
|
|
|
|
|
|
@Autowired
|
|
|
UfoServiceCaller ufoServiceCaller;
|
...
|
...
|
@@ -88,6 +87,11 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
|
@Autowired
|
|
|
SellerWalletMapper sellerWalletMapper;
|
|
|
|
|
|
@Value("${deposit.earnest.money.limit:5000}")
|
|
|
private void depositEarnestMoneyLimit(double depositEarnestMoneyLimit){
|
|
|
this.depositEarnestMoneyLimit = BigDecimal.valueOf(depositEarnestMoneyLimit);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 充值保证金
|
|
|
*/
|
...
|
...
|
@@ -118,8 +122,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);
|
|
|
}
|
|
|
|
|
|
// 生成订单号
|
...
|
...
|
|