【log】整理操作日志代码

pull/3/head
fengshuonan 2021-01-12 21:53:07 +08:00
parent 0e4b3bead0
commit 34a8da5477
4 changed files with 2 additions and 23 deletions

View File

@ -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
*/

View File

@ -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);
}
}
}

View File

@ -15,8 +15,6 @@ public interface SysLogService extends IService<SysLog> {
/**
*
*
* @param
* @return
* @author TSQ
* @date 2021/1/11 17:51
*/

View File

@ -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());
}
}