|
@@ -47,8 +47,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
@@ -47,8 +47,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
47
|
@Value("${deposit.prestore}")
|
47
|
@Value("${deposit.prestore}")
|
48
|
private Double depositPreStore;
|
48
|
private Double depositPreStore;
|
49
|
|
49
|
|
50
|
- @Value("${deposit.earnestMoneyDepositLimit:100}")
|
|
|
51
|
- private BigDecimal earnestMoneyDepositLimit;
|
50
|
+ private BigDecimal depositEarnestMoneyLimit;
|
52
|
|
51
|
|
53
|
@Autowired
|
52
|
@Autowired
|
54
|
UfoServiceCaller ufoServiceCaller;
|
53
|
UfoServiceCaller ufoServiceCaller;
|
|
@@ -88,6 +87,11 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
@@ -88,6 +87,11 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
88
|
@Autowired
|
87
|
@Autowired
|
89
|
SellerWalletMapper sellerWalletMapper;
|
88
|
SellerWalletMapper sellerWalletMapper;
|
90
|
|
89
|
|
|
|
90
|
+ @Value("${deposit.earnest.money.limit:5000}")
|
|
|
91
|
+ private void depositEarnestMoneyLimit(double depositEarnestMoneyLimit){
|
|
|
92
|
+ this.depositEarnestMoneyLimit = BigDecimal.valueOf(depositEarnestMoneyLimit);
|
|
|
93
|
+ }
|
|
|
94
|
+
|
91
|
/**
|
95
|
/**
|
92
|
* 充值保证金
|
96
|
* 充值保证金
|
93
|
*/
|
97
|
*/
|
|
@@ -118,8 +122,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
@@ -118,8 +122,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
118
|
}
|
122
|
}
|
119
|
BigDecimal totalEarnestMoney = sw.getAmount();
|
123
|
BigDecimal totalEarnestMoney = sw.getAmount();
|
120
|
|
124
|
|
121
|
- if (totalEarnestMoney.add(amount).compareTo(earnestMoneyDepositLimit) > 0) {
|
|
|
122
|
- throw new UfoServiceException(400, "账户余额不能超过" + earnestMoneyDepositLimit);
|
125
|
+ if (totalEarnestMoney.add(amount).compareTo(depositEarnestMoneyLimit) > 0) {
|
|
|
126
|
+ throw new UfoServiceException(400, "账户余额不能超过" + depositEarnestMoneyLimit);
|
123
|
}
|
127
|
}
|
124
|
|
128
|
|
125
|
// 生成订单号
|
129
|
// 生成订单号
|