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