From d322fe3250eb76f46e5637d2b3336c92221a97e7 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 06 一月 2025 16:46:29 +0800
Subject: [PATCH] 执行调度模型 默认时间

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/MdkApiImpl.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/MdkApiImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/MdkApiImpl.java
index 6fa52c5..1fba7b4 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/MdkApiImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/MdkApiImpl.java
@@ -251,6 +251,12 @@
         MdkScheduleRespDTO resp = new MdkScheduleRespDTO();
         resp.setScheduleCode(reqDTO.getScheduleCode());
         resp.setScheduleTime(reqDTO.getScheduleTime());
+        if (reqDTO.getScheduleTime() == null) {
+            Calendar calendar = Calendar.getInstance();
+            calendar.set(Calendar.MILLISECOND, 0);
+            calendar.set(Calendar.SECOND, 0);
+            resp.setScheduleTime(calendar.getTime());
+        }
         String catchKey = "ScheduleResult:" + reqDTO.getScheduleCode();
         try {
             if (redisTemplate.hasKey(catchKey)) {

--
Gitblit v1.9.3