提交 | 用户 | 时间
|
0cceb6
|
1 |
package com.jcdm.system.service.impl; |
Y |
2 |
|
|
3 |
import java.util.List; |
|
4 |
import org.springframework.beans.factory.annotation.Autowired; |
|
5 |
import org.springframework.stereotype.Service; |
|
6 |
import com.jcdm.system.domain.SysOperLog; |
|
7 |
import com.jcdm.system.mapper.SysOperLogMapper; |
|
8 |
import com.jcdm.system.service.ISysOperLogService; |
|
9 |
|
|
10 |
/** |
|
11 |
* 操作日志 服务层处理 |
|
12 |
* |
|
13 |
* @author jc |
|
14 |
*/ |
|
15 |
@Service |
|
16 |
public class SysOperLogServiceImpl implements ISysOperLogService |
|
17 |
{ |
|
18 |
@Autowired |
|
19 |
private SysOperLogMapper operLogMapper; |
|
20 |
|
|
21 |
/** |
|
22 |
* 新增操作日志 |
|
23 |
* |
|
24 |
* @param operLog 操作日志对象 |
|
25 |
*/ |
|
26 |
@Override |
|
27 |
public void insertOperlog(SysOperLog operLog) |
|
28 |
{ |
|
29 |
operLogMapper.insertOperlog(operLog); |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
33 |
* 查询系统操作日志集合 |
|
34 |
* |
|
35 |
* @param operLog 操作日志对象 |
|
36 |
* @return 操作日志集合 |
|
37 |
*/ |
|
38 |
@Override |
|
39 |
public List<SysOperLog> selectOperLogList(SysOperLog operLog) |
|
40 |
{ |
|
41 |
return operLogMapper.selectOperLogList(operLog); |
|
42 |
} |
|
43 |
|
|
44 |
/** |
|
45 |
* 批量删除系统操作日志 |
|
46 |
* |
|
47 |
* @param operIds 需要删除的操作日志ID |
|
48 |
* @return 结果 |
|
49 |
*/ |
|
50 |
@Override |
|
51 |
public int deleteOperLogByIds(Long[] operIds) |
|
52 |
{ |
|
53 |
return operLogMapper.deleteOperLogByIds(operIds); |
|
54 |
} |
|
55 |
|
|
56 |
/** |
|
57 |
* 查询操作日志详细 |
|
58 |
* |
|
59 |
* @param operId 操作ID |
|
60 |
* @return 操作日志对象 |
|
61 |
*/ |
|
62 |
@Override |
|
63 |
public SysOperLog selectOperLogById(Long operId) |
|
64 |
{ |
|
65 |
return operLogMapper.selectOperLogById(operId); |
|
66 |
} |
|
67 |
|
|
68 |
/** |
|
69 |
* 清空操作日志 |
|
70 |
*/ |
|
71 |
@Override |
|
72 |
public void cleanOperLog() |
|
73 |
{ |
|
74 |
operLogMapper.cleanOperLog(); |
|
75 |
} |
|
76 |
} |