package com.stylefeng.guns.modular.system.service.impl; import com.baomidou.mybatisplus.service.impl.ServiceImpl; import com.stylefeng.guns.modular.system.dao.AppOperationLogMapper; import com.stylefeng.guns.modular.system.model.AppOperationLog; import com.stylefeng.guns.modular.system.service.IAppOperationLogService; import org.springframework.stereotype.Service; import java.util.Date; @Service public class AppOperationLogServiceImpl extends ServiceImpl implements IAppOperationLogService { /** * 添加日志记录 * @param userId * @param content */ @Override public void addAppOperationLog(Integer userId, String content) { AppOperationLog appOperationLog = new AppOperationLog(); appOperationLog.setUserId(userId); appOperationLog.setUserType(2); appOperationLog.setContent(content); appOperationLog.setCreateTime(new Date()); this.insert(appOperationLog); } }