package com.ruoyi.interfaces.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.ruoyi.interfaces.domain.PtServiceLog;
import com.ruoyi.interfaces.mapper.PtServiceLogMapper;
import com.ruoyi.interfaces.service.PtServiceLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author LinQiLong
 * @date 2022/1/11 9:34
 */
@Service
public class PtServiceLogServiceImpl extends ServiceImpl<PtServiceLogMapper, PtServiceLog> implements PtServiceLogService {

    @Autowired
    private PtServiceLogMapper ptServiceLogMapper;

    @Override
    public int insert(PtServiceLog record) {
        record.setId(IdUtils.simpleUUID());
        record.setTm(new Date());
        return ptServiceLogMapper.insert(record);
    }
}
