From 6d4828b2eccff017de5f9b2ceb2f656065ac73fe Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Tue, 25 Apr 2023 22:29:56 +0800 Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B44=E6=9C=8825=E6=97=A5=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=82=E6=95=B0=EF=BC=8C=E4=BB=A5=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grab/SynchronizationService/SyncMessageList.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncMessageList.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncMessageList.java index 374a6ddc..b78da52b 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncMessageList.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncMessageList.java @@ -4,6 +4,7 @@ import cn.hutool.core.date.DateField; import cn.hutool.core.date.DateTime; import cn.hutool.core.date.DateUtil; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.jeecg.modules.kc.grab.SynchronizationService.base.BaseSync; import org.jeecg.modules.kc.grab.imports.entity.Xxhbsynclog; import org.jeecg.modules.kc.kcMessagelistcopy.entity.KcMessagelistcopy; @@ -37,13 +38,13 @@ public class SyncMessageList extends BaseSync { */ public void run(Map param){ // int offsetDay = 1; -// if(param != null){ -// if(Boolean.parseBoolean((String)param.get("offsetDay"))){ -// -// } -// } //明天 DateTime now = DateUtil.date(); + if(param != null){ + if(StringUtils.isNotBlank((String)param.get("nowDay"))){ + now = DateUtil.parse((String)param.get("nowDay"), "yyyy-MM-dd"); + } + } //今天下午 String todayStr = now.toDateStr() + " 16:00"; DateTime nextDate = DateUtil.offset(now, DateField.DAY_OF_MONTH, 1);