Blame view

ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java 1.72 KB
cee572f2   RuoYi   若依 3.0
1
  package com.ruoyi.system.service.impl;

46444bd0   RuoYi   RuoYi-Vue 1.0
2
3
4
5
  

  import java.util.List;

  import org.springframework.beans.factory.annotation.Autowired;

  import org.springframework.stereotype.Service;

cee572f2   RuoYi   若依 3.0
6
7
8
  import com.ruoyi.system.domain.SysOperLog;

  import com.ruoyi.system.mapper.SysOperLogMapper;

  import com.ruoyi.system.service.ISysOperLogService;

46444bd0   RuoYi   RuoYi-Vue 1.0
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);

      }

  

      /**

       * 批量删除系统操作日志

       * 

bcee37b8   RuoYi   若依 1.1
47
48
       * @param operIds 需要删除的操作日志ID

       * @return 结果

46444bd0   RuoYi   RuoYi-Vue 1.0
49
       */

f39be3ab   Sxile   添加缺少的@ Override
50
      @Override

bcee37b8   RuoYi   若依 1.1
51
      public int deleteOperLogByIds(Long[] operIds)

46444bd0   RuoYi   RuoYi-Vue 1.0
52
      {

bcee37b8   RuoYi   若依 1.1
53
          return operLogMapper.deleteOperLogByIds(operIds);

46444bd0   RuoYi   RuoYi-Vue 1.0
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();

      }

  }