Authored by LUOXC

refactor

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