From a874b928e16320839315b9abcdf2cece1229a424 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 07 十一月 2024 09:20:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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