package com.xcong.excoin.utils;
|
|
import com.xcong.excoin.modules.coin.dao.MemberAccountMoneyChangeDao;
|
import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange;
|
|
import java.math.BigDecimal;
|
|
/**
|
* 日志记录工具类
|
*
|
* @author wzy
|
* @date 2020-07-02
|
**/
|
public class LogRecordUtils {
|
|
public static void insertMemberAccountMoneyChange(Long memberId,String content, BigDecimal amount, String symbol, Integer status, Integer type) {
|
MemberAccountMoneyChange accountRecord = new MemberAccountMoneyChange();
|
accountRecord.setContent(content);
|
accountRecord.setMemberId(memberId);
|
accountRecord.setAmount(amount);
|
accountRecord.setStatus(status);
|
accountRecord.setSymbol(symbol);
|
accountRecord.setType(type);
|
SpringContextHolder.getBean(MemberAccountMoneyChangeDao.class).insert(accountRecord);
|
}
|
}
|