liuxm
2024-04-24 985f56c3cf4f94119be28430cde83b578539b2ee
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
package com.dy.pmsGlobal.aop;
 
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pmsGlobal.daoBa.BaLogMapper;
import com.dy.pmsGlobal.pojoBa.BaLog;
import org.apache.dubbo.common.utils.PojoUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.Date;
 
@Service
public class LogSv {
 
    @Autowired
    private BaLogMapper dao;
 
    public void save(long operator, String operation,String ip) {
        BaLog log = new BaLog();
        log.userId=operator;
        log.content = operation;
        log.dt = new Date();
        log.ip = ip;
        dao.insert(log);
    }
 
}