Authored by LUOXC

refactor

@@ -47,8 +47,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi @@ -47,8 +47,8 @@ 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 + @Value("${deposit.earnest.money.limit:100}")
  51 + private BigDecimal depositEarnestMoneyLimit;
52 52
53 @Autowired 53 @Autowired
54 UfoServiceCaller ufoServiceCaller; 54 UfoServiceCaller ufoServiceCaller;
@@ -118,8 +118,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi @@ -118,8 +118,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi
118 } 118 }
119 BigDecimal totalEarnestMoney = sw.getAmount(); 119 BigDecimal totalEarnestMoney = sw.getAmount();
120 120
121 - if (totalEarnestMoney.add(amount).compareTo(earnestMoneyDepositLimit) > 0) {  
122 - throw new UfoServiceException(400, "账户余额不能超过" + earnestMoneyDepositLimit); 121 + if (totalEarnestMoney.add(amount).compareTo(depositEarnestMoneyLimit) > 0) {
  122 + throw new UfoServiceException(400, "账户余额不能超过" + depositEarnestMoneyLimit);
123 } 123 }
124 124
125 // 生成订单号 125 // 生成订单号
@@ -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}