| | |
| | | package com.iailab.module.model.mdk.sample; |
| | | |
| | | import com.iailab.module.model.mcs.pre.entity.MmModelParamEntity; |
| | | import com.iailab.module.model.mcs.pre.service.MmModelParamService; |
| | | import com.iailab.module.model.mcs.pre.service.MmPredictItemService; |
| | | import com.iailab.module.model.mcs.pre.service.MmPredictModelService; |
| | | import com.iailab.module.model.mdk.factory.ItemEntityFactory; |
| | | import com.iailab.module.model.mdk.factory.ModelEntityFactory; |
| | | import com.iailab.module.model.mdk.sample.dto.ColumnItem; |
| | | import com.iailab.module.model.mdk.sample.dto.ColumnItemPort; |
| | | import com.iailab.module.model.mdk.sample.dto.SampleInfo; |
| | |
| | | private MmPredictModelService mmPredictModelService; |
| | | |
| | | @Autowired |
| | | private ModelEntityFactory modelEntityFactory; |
| | | private MmModelParamService mmModelParamService; |
| | | |
| | | @Autowired |
| | | private ItemEntityFactory itemEntityFactory; |
| | | private MmPredictItemService mmPredictItemService; |
| | | |
| | | @Override |
| | | public SampleInfo prepareSampleInfo(String modelId, Date predictTime) { |
| | |
| | | List<ColumnItem> columnItemList = new ArrayList<>(); |
| | | ColumnItem columnInfo = new ColumnItem(); |
| | | ColumnItemPort curPort = new ColumnItemPort(); //当前端口 |
| | | List<MmModelParamEntity> modelInputParamEntityList = modelEntityFactory.getModelInputParam(modelId); |
| | | List<MmModelParamEntity> modelInputParamEntityList = mmModelParamService.getByModelidFromCatch(modelId); |
| | | if (CollectionUtils.isEmpty(modelInputParamEntityList)) { |
| | | return null; |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | protected Integer getSampleCycle(String modelId) { |
| | | return itemEntityFactory.getItemById(modelEntityFactory.getModelEntity(modelId).getItemid()).getGranularity(); |
| | | return mmPredictItemService.getItemById(mmPredictModelService.getInfoFromCatch(modelId).getItemid()).getGranularity(); |
| | | } |
| | | |
| | | |