iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java
@@ -302,6 +302,8 @@ if (resultStr == null) { return result; } String resultIndex = chartParams.get(CommonConstant.RESULT_INDEX); ItemVO predictItem = mmPredictItemService.getItemByItemNo(itemCode); if (predictItem == null || predictItem.getLastTime() == null) { return result; @@ -322,7 +324,7 @@ List<String> categories = DateUtils.getTimeScale(startTime, endTime, predictItem.getGranularity(), timeFormat); List<String> legend = new ArrayList<>(); MmItemOutputEntity outPut = mmItemOutputService.getByItemid(predictItem.getId(), resultStr); MmItemOutputEntity outPut = mmItemOutputService.getByItemid(predictItem.getId(), resultStr, resultIndex); PreDataViewRespDTO dataView = new PreDataViewRespDTO(); dataView.setItemId(predictItem.getId()); dataView.setItemName(predictItem.getItemName()); iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/common/enums/CommonConstant.java
@@ -36,6 +36,8 @@ String RESULT_STR = "RESULT_STR"; String RESULT_INDEX = "RESULT_INDEX"; String LENGTH_LEFT = "LENGTH_LEFT"; String LENGTH_RIGHT = "LENGTH_RIGHT"; iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmItemOutputService.java
@@ -22,7 +22,7 @@ List<MmItemOutputEntity> getByItemid(String itemId); MmItemOutputEntity getByItemid(String itemid, String resultstr); MmItemOutputEntity getByItemid(String itemid, String resultstr, String resultIndex); void deleteByItemId(String itemId); } iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemOutputServiceImpl.java
@@ -6,6 +6,7 @@ import com.iailab.module.model.mcs.pre.dto.MmItemOutputDTO; import com.iailab.module.model.mcs.pre.entity.MmItemOutputEntity; import com.iailab.module.model.mcs.pre.service.MmItemOutputService; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -74,9 +75,11 @@ } @Override public MmItemOutputEntity getByItemid(String itemid, String resultstr) { public MmItemOutputEntity getByItemid(String itemid, String resultstr, String resultIndex) { QueryWrapper<MmItemOutputEntity> queryWrapper = new QueryWrapper<>(); queryWrapper.eq("itemid", itemid).eq("resultstr", resultstr); queryWrapper.eq("itemid", itemid) .eq("resultstr", resultstr) .eq(StringUtils.isNotBlank(resultIndex), "result_index", resultIndex); return mmItemOutputDao.selectOne(queryWrapper); } iailab-module-model/iailab-module-model-biz/src/main/resources/application-dev.yaml