|
|
|
@ -57,7 +57,7 @@ public class BsMerchantAccountServiceImpl implements BsMerchantAccountService { |
|
|
|
|
@Override |
|
|
|
|
public BsMerchantAccount getAccount(String merNo) { |
|
|
|
|
BsMerchantAccountExample example = new BsMerchantAccountExample(); |
|
|
|
|
example.createCriteria().andMerNoEqualTo(merNo); |
|
|
|
|
example.createCriteria().andMerNoEqualTo(merNo).andStatusNotEqualTo(0); |
|
|
|
|
List<BsMerchantAccount> list = merchantAccountMapper.selectByExample(example); |
|
|
|
|
if (!list.isEmpty()) { |
|
|
|
|
return list.get(0); |
|
|
|
@ -126,7 +126,7 @@ public class BsMerchantAccountServiceImpl implements BsMerchantAccountService { |
|
|
|
|
if (merAccount.getAmount().compareTo(amount) == -1) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "余额不足"); |
|
|
|
|
}*/ |
|
|
|
|
// 查询车队油卡
|
|
|
|
|
// 查询账户
|
|
|
|
|
BsMerchantAccount merAccount = getAccount(merNo); |
|
|
|
|
// 变更前金额
|
|
|
|
|
BigDecimal beforeAmount = merAccount.getAmount(); |
|
|
|
@ -173,7 +173,7 @@ public class BsMerchantAccountServiceImpl implements BsMerchantAccountService { |
|
|
|
|
if (Boolean.TRUE.equals(lock)) { |
|
|
|
|
try { |
|
|
|
|
// 获取锁成功
|
|
|
|
|
// 查询车队油卡
|
|
|
|
|
// 查询账户
|
|
|
|
|
BsMerchantAccount merAccount = getAccount(merNo); |
|
|
|
|
// 变更前金额
|
|
|
|
|
BigDecimal beforeAmount = merAccount.getAmount(); |
|
|
|
|