From 71db7337606c2a64abd3ce253098044a9c1abb39 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 29 Aug 2024 17:03:00 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java | 6 ++---- .../hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java | 7 +++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java index f2f52b6..256e8d0 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java @@ -65,10 +65,8 @@ public class BasicScheduledTask { * realId刷新 */ @XxlJob(CERTIFICATET_DEAD_LINE_NOTICE) -// @Scheduled(cron = "0/40 * * * * ? ") + //@Scheduled(cron = "0/40 * * * * ? ") public ReturnT certificatetDeadLineNotice(String param) throws ParseException { -// public ReturnT certificatetDeadLineNotice() throws ParseException { -// String param=""; Date endTime = new Date(); if (StringUtils.isNotBlank(param)) { endTime = new SimpleDateFormat("yyyy-MM-dd").parse(param); @@ -118,7 +116,7 @@ public class BasicScheduledTask { } private void sendMessage(CertificatetEntity certificatetEntity, Integer date, String users,String personNotice) { -// //注意:通知人是创建人所在机构 + //注意:通知人是创建人所在机构 BusinessMessageDTO message = new BusinessMessageDTO(); message.setBusinessClassify("system"); message.setBusinessKey("certificatet-notice-message"); diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java index 9986873..5e84cdf 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java @@ -60,10 +60,9 @@ public class RealTargetScheduledTask { /** * 水电站-机组指标加载 */ - //@XxlJob(LOAD_HYDROPOWER_UNIT_TARGET) - @Scheduled(cron = "0/40 * * * * ? ") - public ReturnT loadHydropowerTarget() { - String param = ""; + @XxlJob(LOAD_HYDROPOWER_UNIT_TARGET) + //@Scheduled(cron = "0/40 * * * * ? ") + public ReturnT loadHydropowerTarget(String param) { if (Func.isBlank(param)) { param = DateUtil.format(new Date(), "yyyy-MM"); }