| | |
| | | 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; |
| | |
| | | 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); |
| | | } |
| | | } |