| | |
| | | List<Object[]> result = new ArrayList<>(); |
| | | QueryWrapper<MmItemResultJsonEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("outputid", outputId) |
| | | .eq("predicttime", predictTime); |
| | | .eq("predicttime", DateUtils.format(predictTime,timeFormat)); |
| | | MmItemResultJsonEntity data = baseDao.selectOne(wrapper); |
| | | if (data == null || StringUtils.isBlank(data.getJsonvalue())) { |
| | | return result; |
| | |
| | | }); |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public String getDoubleData(String outputId, Date predictTime) { |
| | | QueryWrapper<MmItemResultJsonEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("outputid", outputId) |
| | | .eq("predicttime", predictTime); |
| | | MmItemResultJsonEntity mmItemResultJsonEntity = baseDao.selectOne(wrapper); |
| | | return null == mmItemResultJsonEntity ? null : mmItemResultJsonEntity.getCumulant(); |
| | | } |
| | | } |