lxw
2023-05-25 7b7e2cb0a59221fd0e7f77a471bd22e42ece4911
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.whyc.service;
 
import com.whyc.mapper.OperationLogMapper;
import com.whyc.pojo.OperationLog;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.Date;
 
@Service
public class OperationLogService {
 
    @Resource
    private OperationLogMapper mapper;
 
    public void record(Long uId, Integer operationType, Date operationTime, String terminalIp
            , String operationMsg, String operationDetail, String operationMsgEnUs, String operationDetailEnUs) {
        OperationLog operationLog = new OperationLog(null, uId.intValue(), operationType, operationTime, terminalIp
                , operationMsg, operationDetail, operationMsgEnUs, operationDetailEnUs);
        mapper.insert(operationLog);
    }
}