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

确认收货处理相关借款逻辑

上级 8373e371
......@@ -304,7 +304,7 @@ public class OrderChildLoanComponent {
update.setVirtuallyFrozenBalance(BigDecimal.ZERO);
update.setVirtuallyUsableBalance(BigDecimal.ZERO);
}
//核抵扣
//核抵扣
Integer i = ownerLoanAccountDao.childWriteOffOwnerLoanAccountCAS(update, LocalDateTime.now());
if (i <= 0) {
......
......@@ -47,7 +47,7 @@ public interface OwnerLoanAccountMapper extends BaseMapper<OwnerLoanAccount> {
",modified_time=#{now}"
+ "where id = #{account.id} and modified_time = #{account.modifiedTime}"
)
Integer childWriteOffOwnerLoanAccountCAS(OwnerLoanAccount account, String nowStr);
Integer childWriteOffOwnerLoanAccountCAS(@Param("account") OwnerLoanAccount account, @Param("now") String nowStr);
@Update("update owner_loan_account set funding_account_balance = funding_account_balance + #{account.fundingAccountBalance}" +
",funding_usable_balance = funding_usable_balance + #{account.fundingUsableBalance},funding_frozen_balance = funding_frozen_balance - #{account.fundingFrozenBalance}" +
......@@ -56,5 +56,5 @@ public interface OwnerLoanAccountMapper extends BaseMapper<OwnerLoanAccount> {
",modified_time=#{now}"
+ "where id = #{account.id} and modified_time = #{account.modifiedTime}"
)
Integer thawOwnerLoanAccountCAS(OwnerLoanAccount account, String nowStr);
Integer thawOwnerLoanAccountCAS(@Param("account") OwnerLoanAccount account, @Param("now") String nowStr);
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论