From 6b13839488edcd06046e26a41fe897358176689c Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 13 十二月 2024 17:56:41 +0800
Subject: [PATCH] 采集质量

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MpkFileServiceImpl.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MpkFileServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MpkFileServiceImpl.java
index 51e677b..f141bdf 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MpkFileServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MpkFileServiceImpl.java
@@ -14,6 +14,8 @@
 import com.iailab.framework.security.core.util.SecurityFrameworkUtils;
 import com.iailab.framework.tenant.core.context.TenantContextHolder;
 import com.iailab.module.infra.api.config.ConfigApi;
+import com.iailab.module.model.mcs.pre.service.MmModelArithSettingsService;
+import com.iailab.module.model.mcs.sche.service.StScheduleModelSettingService;
 import com.iailab.module.model.mpk.common.MdkConstant;
 import com.iailab.module.model.mpk.common.utils.CmdUtils;
 import com.iailab.module.model.mpk.common.utils.DllUtils;
@@ -67,6 +69,12 @@
 
     @Autowired
     private ProjectPackageHistoryModelService projectPackageHistoryModelService;
+
+    @Autowired
+    private MmModelArithSettingsService mmModelArithSettingsService;
+
+    @Autowired
+    private StScheduleModelSettingService stScheduleModelSettingService;
 
     @Autowired
     private ConfigApi configApi;
@@ -204,6 +212,11 @@
             }
         }
 
+        // 修改预测项pyFile参数
+        mmModelArithSettingsService.updatePyFile(dto.getPyModule(),fileName);
+        // 修改调度项pyFile参数
+        stScheduleModelSettingService.updatePyFile(dto.getPyModule(),fileName);
+
         MpkFileEntity entity = ConvertUtils.sourceToTarget(dto, MpkFileEntity.class);
         entity.setUpdater(SecurityFrameworkUtils.getLoginUserId());
         entity.setUpdateDate(new Date());

--
Gitblit v1.9.3