| | |
| | | package com.iailab.module.model.mdk.factory; |
| | | |
| | | import com.iailab.module.model.mcs.pre.entity.MmItemTypeEntity; |
| | | import com.iailab.module.model.mcs.pre.service.MmItemTypeService; |
| | | import com.iailab.module.model.mdk.predict.PredictItemHandler; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private ApplicationContext applicationContext; |
| | | |
| | | @Autowired |
| | | private ItemEntityFactory itemEntityFactory; |
| | | private MmItemTypeService mmItemTypeService; |
| | | |
| | | /** |
| | | * 根据预测项实体创建对应的预测项对象 |
| | |
| | | * @return |
| | | */ |
| | | public PredictItemHandler create(String itemId) { |
| | | MmItemTypeEntity itemTypeEntity = itemEntityFactory.getMmItemTypeEntity(itemId); |
| | | MmItemTypeEntity itemTypeEntity = mmItemTypeService.getItemTypeByItemId(itemId); |
| | | //获取预测项的预测程序的类 |
| | | Object itemObject = null; |
| | | try { |