提交 c0a1726c authored 作者: huyufan's avatar huyufan

bug修复

上级 dd5965f0
...@@ -40,7 +40,7 @@ public interface OwnerAccountMapper extends BaseMapper<OwnerAccount> { ...@@ -40,7 +40,7 @@ public interface OwnerAccountMapper extends BaseMapper<OwnerAccount> {
) )
Integer subAccount(@Param("account") OwnerAccount account, @Param("now") String now); Integer subAccount(@Param("account") OwnerAccount account, @Param("now") String now);
@Update("update owner_account set frozen_balance = frozen_balance - #{account.frozenBalance}," + @Update("update owner_account set frozen_balance = frozen_balance - #{account.frozenBalance}, account_balance = account_balance - #{account.accountBalance}," +
"modified_time=#{now}" "modified_time=#{now}"
+ "where id = #{account.id} and modified_time = #{account.modifiedTime}" + "where id = #{account.id} and modified_time = #{account.modifiedTime}"
) )
......
...@@ -363,6 +363,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -363,6 +363,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
OwnerAccount account = ownerAccountDao.getAccountByOwnerUserNoAndAccountType(ownerCaseOut.getOwnerUserNo(), ownerCaseOut.getAccountType()); OwnerAccount account = ownerAccountDao.getAccountByOwnerUserNoAndAccountType(ownerCaseOut.getOwnerUserNo(), ownerCaseOut.getAccountType());
OwnerAccount update = new OwnerAccount(); OwnerAccount update = new OwnerAccount();
update.setFrozenBalance(caseOutBalance); update.setFrozenBalance(caseOutBalance);
update.setAccountBalance(caseOutBalance);
update.setId(account.getId()); update.setId(account.getId());
update.setModifiedTime(account.getModifiedTime()); update.setModifiedTime(account.getModifiedTime());
Integer flag = ownerAccountDao.updateOwnerAccountForConfirm(update); Integer flag = ownerAccountDao.updateOwnerAccountForConfirm(update);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论