Authored by LUOXC

Merge branch 'hotfix-20190325' into test6.8.9

@@ -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 // 生成订单号
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 deposit.prestore=${depositPrestore} 2 deposit.prestore=${depositPrestore}
3 # 保证金充值列表 3 # 保证金充值列表
4 deposit.recharge.list=${depositRechargeList} 4 deposit.recharge.list=${depositRechargeList}
  5 +deposit.earnest.money.limit=${depositEarnestMoneyLimit}
5 6
6 # 芝麻认证开始开关,如果为false,芝麻认知直接返回通过 7 # 芝麻认证开始开关,如果为false,芝麻认知直接返回通过
7 zhimacert.switch=${zhiMaCertSwitch} 8 zhimacert.switch=${zhiMaCertSwitch}