提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.service.logger; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.common.util.object.BeanUtils; |
|
5 |
import com.iailab.module.system.api.logger.dto.OperateLogCreateReqDTO; |
|
6 |
import com.iailab.module.system.api.logger.dto.OperateLogPageReqDTO; |
|
7 |
import com.iailab.module.system.controller.admin.logger.vo.operatelog.OperateLogPageReqVO; |
|
8 |
import com.iailab.module.system.dal.dataobject.logger.OperateLogDO; |
|
9 |
import com.iailab.module.system.dal.mysql.logger.OperateLogMapper; |
|
10 |
import lombok.extern.slf4j.Slf4j; |
|
11 |
import org.springframework.stereotype.Service; |
|
12 |
import org.springframework.validation.annotation.Validated; |
|
13 |
|
|
14 |
import javax.annotation.Resource; |
|
15 |
|
|
16 |
/** |
|
17 |
* 操作日志 Service 实现类 |
|
18 |
* |
|
19 |
* @author iailab |
|
20 |
*/ |
|
21 |
@Service |
|
22 |
@Validated |
|
23 |
@Slf4j |
|
24 |
public class OperateLogServiceImpl implements OperateLogService { |
|
25 |
|
|
26 |
@Resource |
|
27 |
private OperateLogMapper operateLogMapper; |
|
28 |
|
|
29 |
@Override |
|
30 |
public void createOperateLog(OperateLogCreateReqDTO createReqDTO) { |
|
31 |
OperateLogDO log = BeanUtils.toBean(createReqDTO, OperateLogDO.class); |
|
32 |
operateLogMapper.insert(log); |
|
33 |
} |
|
34 |
|
|
35 |
@Override |
|
36 |
public PageResult<OperateLogDO> getOperateLogPage(OperateLogPageReqVO pageReqVO) { |
|
37 |
return operateLogMapper.selectPage(pageReqVO); |
|
38 |
} |
|
39 |
|
|
40 |
@Override |
|
41 |
public PageResult<OperateLogDO> getOperateLogPage(OperateLogPageReqDTO pageReqDTO) { |
|
42 |
return operateLogMapper.selectPage(pageReqDTO); |
|
43 |
} |
|
44 |
|
|
45 |
} |