From 1a2b62d8d2f56f6cd67f225fdc82bb29705d9286 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 18 十月 2024 13:58:11 +0800
Subject: [PATCH] 模型运行方法 ItemStatus STATUS1(1, "启用"); 添加字段 mpkProjectId 模型运行api 其他bug调整

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MpkFileServiceImpl.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 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 84d5eb6..afe68d0 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
@@ -132,10 +132,10 @@
         modelMethodService.insertList(dto.getModelMethods(), entity.getId());
 
         // 替换环境变量MDK_PKGS下的py文件
-        String mdkPkgs = System.getenv("MDK_PKGS");
-        String pyFilePath = mdkPkgs + File.separator + entity.getPyModule().replace(".", File.separator) + File.separator + entity.getPyName() + ".pyd";
-        FileUtil.mkParentDirs(pyFilePath);
-        FileUtil.copy(entity.getFilePath(), pyFilePath, true);
+//        String mdkPkgs = System.getenv("MDK_PKGS");
+//        String pyFilePath = mdkPkgs + File.separator + entity.getPyModule().replace(".", File.separator) + File.separator + entity.getPyName() + ".pyd";
+//        FileUtil.mkParentDirs(pyFilePath);
+//        FileUtil.copy(entity.getFilePath(), pyFilePath, true);
     }
 
     @Override
@@ -149,10 +149,10 @@
         modelMethodService.insertList(dto.getModelMethods(), entity.getId());
 
         // 替换环境变量MDK_PKGS下的py文件
-        String mdkPkgs = System.getenv("MDK_PKGS");
-        String pyFilePath = mdkPkgs + File.separator + entity.getPyModule().replace(".", File.separator) + File.separator + entity.getPyName() + ".pyd";
-        FileUtil.mkParentDirs(pyFilePath);
-        FileUtil.copy(entity.getFilePath(), pyFilePath, true);
+//        String mdkPkgs = System.getenv("MDK_PKGS");
+//        String pyFilePath = mdkPkgs + File.separator + entity.getPyModule().replace(".", File.separator) + File.separator + entity.getPyName() + ".pyd";
+//        FileUtil.mkParentDirs(pyFilePath);
+//        FileUtil.copy(entity.getFilePath(), pyFilePath, true);
     }
 
     @Override

--
Gitblit v1.9.3