| New file |
| | |
| | | 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.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @DS("log") |
| | | @Service |
| | | public class LogService { |
| | | |
| | | private final LogMapper logMapper; |
| | | |
| | | |
| | | public LogService(LogMapper logMapper) { |
| | | this.logMapper = logMapper; |
| | | } |
| | | |
| | | |
| | | public void saveLog(Log log) { |
| | | logMapper.insert(log); |
| | | } |
| | | } |