From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformInterfaceLogServiceImpl.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformInterfaceLogServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformInterfaceLogServiceImpl.java index b5038a0..e1cb423 100644 --- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformInterfaceLogServiceImpl.java +++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformInterfaceLogServiceImpl.java @@ -22,13 +22,10 @@ /** * 浣滀笟璋冨害骞冲彴鎺ュ彛浜や簰璁板綍Service瀹炵幇 * @author 姹熻箘韫� - * @since 2024/04/28 16:06 + * @date 2024/06/28 10:03 */ @Service public class PlatformInterfaceLogServiceImpl implements PlatformInterfaceLogService { - - @Autowired - private SystemDictDataBiz systemDictDataBiz; @Autowired private PlatformInterfaceLogMapper platformInterfaceLogMapper; @@ -131,13 +128,17 @@ QueryWrapper<PlatformInterfaceLog> wrapper = new QueryWrapper<>(platformInterfaceLog); return platformInterfaceLogMapper.selectCount(wrapper); } + + @Autowired + private SystemDictDataBiz systemDictDataBiz; + @Override public void clearThreeMonthLog() { int days =15; try { - days = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.LOG_DEL_DAYS_LIMIT).getCode()); + days = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.HK_LOG_DEL_DAYS_LIMIT).getCode()); }catch (Exception e){} platformInterfaceLogMapper.delete(new UpdateWrapper<PlatformInterfaceLog>().lambda() - .apply("to_days(create_date)+"+days+" < to_days(now())")); + .apply("to_days(create_date)+"+days+" < to_days(now())") ); } } -- Gitblit v1.9.3