From 34a8da547716b3cc7363cd2d158953f1dbf82d1a Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Tue, 12 Jan 2021 21:53:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90log=E3=80=91=E6=95=B4=E7=90=86?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/controller/LogManagerController.java | 3 +-- .../kernel/log/db/DbLogManagerServiceImpl.java | 13 ------------- .../roses/kernel/log/db/service/SysLogService.java | 2 -- .../log/db/service/impl/SysLogServiceImpl.java | 7 +------ 4 files changed, 2 insertions(+), 23 deletions(-) diff --git a/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/modular/manage/controller/LogManagerController.java b/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/modular/manage/controller/LogManagerController.java index a0f5922bb..1aeb2d94e 100644 --- a/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/modular/manage/controller/LogManagerController.java +++ b/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/modular/manage/controller/LogManagerController.java @@ -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 */ diff --git a/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/DbLogManagerServiceImpl.java b/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/DbLogManagerServiceImpl.java index 4ec3589ac..d90a1234a 100644 --- a/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/DbLogManagerServiceImpl.java +++ b/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/DbLogManagerServiceImpl.java @@ -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); - } } } diff --git a/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/SysLogService.java b/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/SysLogService.java index 7a920e568..7441e79f9 100644 --- a/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/SysLogService.java +++ b/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/SysLogService.java @@ -15,8 +15,6 @@ public interface SysLogService extends IService { /** * 查看日志详情 * - * @param - * @return * @author TSQ * @date 2021/1/11 17:51 */ diff --git a/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/impl/SysLogServiceImpl.java b/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/impl/SysLogServiceImpl.java index 5bd4b645b..f660fe6f0 100644 --- a/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/impl/SysLogServiceImpl.java +++ b/kernel-d-log/log-sdk-db/src/main/java/cn/stylefeng/roses/kernel/log/db/service/impl/SysLogServiceImpl.java @@ -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 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()); } }