From e116c94338768ae3e27da47a4de858106ec02713 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 08 一月 2025 11:26:14 +0800
Subject: [PATCH] 获取调度执行结果

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java
index 4be5711..a58e001 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java
@@ -1,5 +1,7 @@
 package com.iailab.module.model.api.controller.admin;
+import com.iailab.framework.common.pojo.CommonResult;
 import com.iailab.module.model.api.mdk.MdkApi;
+import com.iailab.module.model.api.mdk.dto.MdkScheduleReqDTO;
 import com.iailab.module.model.api.mdk.dto.MdkScheduleRespDTO;
 import com.iailab.module.model.common.utils.ApiSecurityUtils;
 import io.swagger.v3.oas.annotations.Operation;
@@ -31,9 +33,19 @@
 
     @PostMapping("/schedule-model/out")
     @Operation(summary = "调度模型数据下发")
-    public Boolean scheduleModelOut(HttpServletResponse response, HttpServletRequest
+    public CommonResult<Boolean> scheduleModelOut(HttpServletResponse response, HttpServletRequest
             request, @RequestBody MdkScheduleRespDTO dto) throws Exception {
         apiSecurityUtils.validate(request);
-        return mdkApi.scheduleModelOut(dto);
+        Boolean data = mdkApi.scheduleModelOut(dto);
+        return CommonResult.success(data);
+    }
+
+    @PostMapping("/schedule-result")
+    @Operation(summary = "获取调度执行结果,不保存记录")
+    public CommonResult<MdkScheduleRespDTO> runSchedule(HttpServletResponse response, HttpServletRequest
+            request, @RequestBody MdkScheduleReqDTO reqDTO) throws Exception {
+        apiSecurityUtils.validate(request);
+        MdkScheduleRespDTO data = mdkApi.runSchedule(reqDTO);
+        return CommonResult.success(data);
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3