更新Mapper的文件结构
This commit is contained in:
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Log;
|
||||
import com.jsh.erp.datasource.entities.LogExample;
|
||||
import com.jsh.erp.datasource.mappers.LogMapper;
|
||||
import com.jsh.erp.datasource.mappers.LogMapperEx;
|
||||
import com.jsh.erp.datasource.vo.LogVo4List;
|
||||
import com.jsh.erp.utils.ExceptionCodeConstants;
|
||||
import com.jsh.erp.utils.JshException;
|
||||
@@ -25,6 +26,9 @@ public class LogService {
|
||||
@Resource
|
||||
private LogMapper logMapper;
|
||||
|
||||
@Resource
|
||||
private LogMapperEx logMapperEx;
|
||||
|
||||
public Log getLog(long id) {
|
||||
return logMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
@@ -36,13 +40,13 @@ public class LogService {
|
||||
|
||||
public List<LogVo4List> select(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime,
|
||||
String contentdetails, int offset, int rows) {
|
||||
return logMapper.selectByConditionLog(operation, usernameID, clientIp, status, beginTime, endTime,
|
||||
return logMapperEx.selectByConditionLog(operation, usernameID, clientIp, status, beginTime, endTime,
|
||||
contentdetails, offset, rows);
|
||||
}
|
||||
|
||||
public int countLog(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime,
|
||||
String contentdetails) {
|
||||
return logMapper.countsByLog(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails);
|
||||
return logMapperEx.countsByLog(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails);
|
||||
}
|
||||
|
||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||
|
||||
Reference in New Issue
Block a user