From 220d851f60727c7b85cdd96a333a570ddf41cb7d Mon Sep 17 00:00:00 2001 From: rk <94314517@qq.com> Date: 星期二, 14 十月 2025 14:13:12 +0800 Subject: [PATCH] 定时自动叫号 与 WMS获取车辆是否在园接口开发 --- server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformInterfaceLogServiceImpl.java | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 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 fc07100..9d90092 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 @@ -1,7 +1,9 @@ package com.doumee.service.business.impl; -import com.doumee.core.model.PageData; -import com.doumee.core.model.PageWrap; +import com.doumee.biz.system.SystemDictDataBiz; +import com.doumee.service.business.third.model.PageData; +import com.doumee.service.business.third.model.PageWrap; +import com.doumee.core.utils.Constants; import com.doumee.core.utils.Utils; import com.doumee.dao.business.PlatformInterfaceLogMapper; import com.doumee.dao.business.model.PlatformInterfaceLog; @@ -125,4 +127,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.HK_LOG_DEL_DAYS_LIMIT).getCode()); + }catch (Exception e){} + platformInterfaceLogMapper.delete(new UpdateWrapper<PlatformInterfaceLog>().lambda() + .apply("to_days(create_date)+"+days+" < to_days(now())") ); + } } -- Gitblit v1.9.3