Helius
2021-08-04 04b04d8e0746f6bf6f83450caec52bc7f9ce8db9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.xzx.gc.order.service;
 
import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.NumberUtil;
import com.xzx.gc.common.constant.Constants;
import com.xzx.gc.entity.AccountLog;
import com.xzx.gc.entity.UserInfo;
import com.xzx.gc.order.mapper.AccountLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;
 
import java.util.List;
 
@Service
@Transactional
public class AccountLogService {
 
    @Autowired
    private AccountLogMapper accountLogMapper;
 
    public void add(AccountLog accountLog){
        accountLog.setCreateTime(DateUtil.now());
        accountLogMapper.insertSelective(accountLog);
    }
 
 
 
}