From 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 30 Sep 2024 16:57:22 +0800 Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea --- src/main/java/com/xcong/excoin/utils/LogRecordUtils.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/utils/LogRecordUtils.java b/src/main/java/com/xcong/excoin/utils/LogRecordUtils.java index 274b052..6bf4189 100644 --- a/src/main/java/com/xcong/excoin/utils/LogRecordUtils.java +++ b/src/main/java/com/xcong/excoin/utils/LogRecordUtils.java @@ -1,6 +1,8 @@ package com.xcong.excoin.utils; +import com.xcong.excoin.modules.coin.dao.MemberAccountFlowEntityDao; import com.xcong.excoin.modules.coin.dao.MemberAccountMoneyChangeDao; +import com.xcong.excoin.modules.coin.entity.MemberAccountFlowEntity; import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange; import java.math.BigDecimal; @@ -23,4 +25,15 @@ accountRecord.setType(type); SpringContextHolder.getBean(MemberAccountMoneyChangeDao.class).insert(accountRecord); } + + public static void insertMemberAccountFlow(Long memberId, BigDecimal price, BigDecimal balance, String symbol, String source, String remark) { + MemberAccountFlowEntity memberAccountFlowEntity = new MemberAccountFlowEntity(); + memberAccountFlowEntity.setMemberId(memberId); + memberAccountFlowEntity.setPrice(price); + memberAccountFlowEntity.setBalance(balance); + memberAccountFlowEntity.setSymbol(symbol); + memberAccountFlowEntity.setSource(source); + memberAccountFlowEntity.setRemark(remark); + SpringContextHolder.getBean(MemberAccountFlowEntityDao.class).insert(memberAccountFlowEntity); + } } -- Gitblit v1.9.1