mirror of https://gitee.com/stylefeng/roses
【log】整理操作日志代码
parent
0e4b3bead0
commit
34a8da5477
|
@ -29,6 +29,7 @@ public class LogManagerController {
|
|||
*/
|
||||
@Resource
|
||||
private LogManagerApi logManagerApi;
|
||||
|
||||
/**
|
||||
* 日志管理service
|
||||
*/
|
||||
|
@ -72,8 +73,6 @@ public class LogManagerController {
|
|||
/**
|
||||
* 查看日志详情
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @author TSQ
|
||||
* @date 2021/1/11 17:36
|
||||
*/
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
package cn.stylefeng.roses.kernel.log.db;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.stylefeng.roses.kernel.db.api.factory.PageResultFactory;
|
||||
|
@ -179,17 +177,6 @@ public class DbLogManagerServiceImpl implements LogManagerApi {
|
|||
logManagerParam.setPageSize(DEFAULT_PAGE_SIZE);
|
||||
}
|
||||
|
||||
// 开始时间为空则用当天时间开始时间
|
||||
if (StrUtil.isEmpty(logManagerParam.getBeginDateTime())) {
|
||||
String beginDateTime = DateUtil.beginOfDay(DateUtil.parse("2021-01-01 00:00:00")).toString(DatePattern.NORM_DATETIME_FORMAT);
|
||||
logManagerParam.setBeginDateTime(beginDateTime);
|
||||
}
|
||||
|
||||
// 结束时间为空则默认用当前时间加一天
|
||||
if (StrUtil.isEmpty(logManagerParam.getEndDateTime())) {
|
||||
String endDateTime = DateUtil.beginOfDay(DateUtil.tomorrow()).toString(DatePattern.NORM_DATETIME_FORMAT);
|
||||
logManagerParam.setEndDateTime(endDateTime);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,8 +15,6 @@ public interface SysLogService extends IService<SysLog> {
|
|||
/**
|
||||
* 查看日志详情
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @author TSQ
|
||||
* @date 2021/1/11 17:51
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package cn.stylefeng.roses.kernel.log.db.service.impl;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.manage.LogManagerParam;
|
||||
import cn.stylefeng.roses.kernel.log.db.entity.SysLog;
|
||||
import cn.stylefeng.roses.kernel.log.db.mapper.SysLogMapper;
|
||||
|
@ -26,14 +24,11 @@ public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> impleme
|
|||
/**
|
||||
* 查询日志详细信息
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @author TSQ
|
||||
* @date 2021/1/11 17:54
|
||||
*/
|
||||
private SysLog querySysLog(LogManagerParam logManagerParam) {
|
||||
SysLog hrOrganization = this.getById(logManagerParam.getLogId());
|
||||
return hrOrganization;
|
||||
return this.getById(logManagerParam.getLogId());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue