吉安感知网项目-后端
xiebin
2026-01-16 041fa12f2b00770ed4592ece9bcd36a7ad3f687c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.sxkj.core.log.wrapper;
 
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.sxkj.core.log.dto.OperationLogDTO;
import org.sxkj.core.log.model.OperationLog;
import org.sxkj.core.log.vo.OperationLogVO;
 
import java.util.Objects;
 
/**
 * @Description 操作日志包装类
 * @Author AIX
 * @Date 2026/1/15 17:40
 * @Version 1.0
 */
public class OperationLogWrapper extends BaseEntityWrapper<OperationLog, OperationLogVO> {
 
    public static OperationLogWrapper build() {
        return new OperationLogWrapper();
    }
 
    @Override
    public OperationLogVO entityVO(OperationLog entity) {
        return Objects.requireNonNull(BeanUtil.copy(entity, OperationLogVO.class));
    }
 
    public OperationLog entityDTO(OperationLogDTO operationLogDTO) {
        return Objects.requireNonNull(BeanUtil.copy(operationLogDTO, OperationLog.class));
    }
 
}