From cf2287d43a3e6e6a87b799b484c1c6073226c1bf Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期二, 05 十一月 2024 18:17:31 +0800
Subject: [PATCH] MDK包名管理

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/factory/PredictItemFactory.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/factory/PredictItemFactory.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/factory/PredictItemFactory.java
index 1290ff6..0095127 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/factory/PredictItemFactory.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/factory/PredictItemFactory.java
@@ -1,6 +1,7 @@
 package com.iailab.module.model.mdk.factory;
 
 import com.iailab.module.model.mcs.pre.entity.MmItemTypeEntity;
+import com.iailab.module.model.mdk.predict.PredictItemHandler;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.ApplicationContext;
@@ -25,16 +26,16 @@
      * @param itemId
      * @return
      */
-    public Object create(String itemId) {
+    public PredictItemHandler create(String itemId) {
         MmItemTypeEntity itemTypeEntity = itemEntityFactory.getMmItemTypeEntity(itemId);
         //获取预测项的预测程序的类
         Object itemObject = null;
         try {
-            Class clazz = Class.forName(itemTypeEntity.getItemclasstype());
+            Class<?> clazz = Class.forName(itemTypeEntity.getItemclasstype());
             itemObject = applicationContext.getBean(clazz);
         } catch (Exception e) {
             log.error("exception message : {}", e.getMessage());
         }
-        return itemObject;
+        return (PredictItemHandler) itemObject;
     }
 }

--
Gitblit v1.9.3