SysOperLogServiceImpl.java 1.7 KB
Newer Older
RuoYi's avatar
RuoYi committed
1
package com.ruoyi.system.service.impl;
RuoYi's avatar
RuoYi committed
2 3 4 5

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
RuoYi's avatar
RuoYi committed
6 7 8
import com.ruoyi.system.domain.SysOperLog;
import com.ruoyi.system.mapper.SysOperLogMapper;
import com.ruoyi.system.service.ISysOperLogService;
RuoYi's avatar
RuoYi committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

/**
 * 操作日志 服务层处理
 * 
 * @author ruoyi
 */
@Service
public class SysOperLogServiceImpl implements ISysOperLogService
{
    @Autowired
    private SysOperLogMapper operLogMapper;

    /**
     * 新增操作日志
     * 
     * @param operLog 操作日志对象
     */
    @Override
    public void insertOperlog(SysOperLog operLog)
    {
        operLogMapper.insertOperlog(operLog);
    }

    /**
     * 查询系统操作日志集合
     * 
     * @param operLog 操作日志对象
     * @return 操作日志集合
     */
    @Override
    public List<SysOperLog> selectOperLogList(SysOperLog operLog)
    {
        return operLogMapper.selectOperLogList(operLog);
    }

    /**
     * 批量删除系统操作日志
     * 
RuoYi's avatar
RuoYi committed
47 48
     * @param operIds 需要删除的操作日志ID
     * @return 结果
RuoYi's avatar
RuoYi committed
49
     */
Sxile's avatar
Sxile committed
50
    @Override
RuoYi's avatar
RuoYi committed
51
    public int deleteOperLogByIds(Long[] operIds)
RuoYi's avatar
RuoYi committed
52
    {
RuoYi's avatar
RuoYi committed
53
        return operLogMapper.deleteOperLogByIds(operIds);
RuoYi's avatar
RuoYi committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
    }

    /**
     * 查询操作日志详细
     * 
     * @param operId 操作ID
     * @return 操作日志对象
     */
    @Override
    public SysOperLog selectOperLogById(Long operId)
    {
        return operLogMapper.selectOperLogById(operId);
    }

    /**
     * 清空操作日志
     */
    @Override
    public void cleanOperLog()
    {
        operLogMapper.cleanOperLog();
    }
}