chenlu
2024-07-18 7c4fb2ba6509a609855a6572125a680ceb27b339
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.example.erp.service.userInfo;
 
import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.erp.entity.userInfo.Log;
import com.example.erp.mapper.userInfo.LogMapper;
import org.springframework.stereotype.Service;
 
 
@Service
@DS("log")
public class LogService {
 
    private final LogMapper logMapper;
 
 
    public LogService(LogMapper logMapper) {
        this.logMapper = logMapper;
    }
 
 
    public void saveLog(Log log)  {
        logMapper.insert(log);
    }
}