| | |
| | | if (resultStr == null) { |
| | | return result; |
| | | } |
| | | String resultIndex = chartParams.get(CommonConstant.RESULT_INDEX); |
| | | if (resultIndex == null) { |
| | | return result; |
| | | } |
| | | |
| | | ItemVO predictItem = mmPredictItemService.getItemByItemNo(itemCode); |
| | | if (predictItem == null || predictItem.getLastTime() == null) { |
| | | return result; |
| | |
| | | |
| | | 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, Integer.parseInt(resultIndex)); |
| | | PreDataViewRespDTO dataView = new PreDataViewRespDTO(); |
| | | dataView.setItemId(predictItem.getId()); |
| | | dataView.setItemName(predictItem.getItemName()); |
| | |
| | | |
| | | String RESULT_STR = "RESULT_STR"; |
| | | |
| | | String RESULT_INDEX = "RESULT_INDEX"; |
| | | |
| | | String LENGTH_LEFT = "LENGTH_LEFT"; |
| | | |
| | | String LENGTH_RIGHT = "LENGTH_RIGHT"; |
| | |
| | | |
| | | List<MmItemOutputEntity> getByItemid(String itemId); |
| | | |
| | | MmItemOutputEntity getByItemid(String itemid, String resultstr); |
| | | MmItemOutputEntity getByItemid(String itemid, String resultstr, Integer resultIndex); |
| | | |
| | | void deleteByItemId(String itemId); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public MmItemOutputEntity getByItemid(String itemid, String resultstr) { |
| | | public MmItemOutputEntity getByItemid(String itemid, String resultstr, Integer resultIndex) { |
| | | QueryWrapper<MmItemOutputEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("itemid", itemid).eq("resultstr", resultstr); |
| | | queryWrapper.eq("itemid", itemid) |
| | | .eq("resultstr", resultstr) |
| | | .eq("result_index", resultIndex); |
| | | return mmItemOutputDao.selectOne(queryWrapper); |
| | | } |
| | | |