廖井涛
2024-07-04 a15dba424e67b4773a546246c396b83d3b820d98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.example.erp.service.userInfo;
 
import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.erp.entity.userInfo.SysError;
import com.example.erp.mapper.userInfo.SysErrorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service
@DS("user_info")
public class SysErrorService {
    private final SysErrorMapper sysErrorMapper;
 
    public SysErrorService(SysErrorMapper sysErrorMapper) {
        this.sysErrorMapper = sysErrorMapper;
    }
 
    public void insert(SysError sysError) {
        sysErrorMapper.saveError(sysError);
    }
 
}