| | |
| | | |
| | | @Autowired |
| | | private MmItemResultDao mmItemResultDao; |
| | | |
| | | @Override |
| | | public List<MmItemResultEntity> getListByOutputId(String outputid, Map<String, Object> params) { |
| | | |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | Date startDateParam = null; |
| | | try { |
| | | startDateParam = sdf.parse((String)params.get("startTime")); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | Date endDateParam = null; |
| | | try { |
| | | endDateParam = sdf.parse((String)params.get("endTime")); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | List<MmItemResultEntity> list = mmItemResultDao.selectList( |
| | | new QueryWrapper<MmItemResultEntity>() |
| | | .eq("outputid", outputid) |
| | | .between("datatime", startDateParam, endDateParam) |
| | | .orderByAsc("datatime") |
| | | ); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public void savePredictValue(Map<String, List<DataValueVO>> predictValueMap, int t, String nIndex, Date predictTime) { |