| | |
| | | } else if (PredGranularityEnum.D1.getCode().equals(predictItem.getGranularity())) { |
| | | calendar.set(Calendar.MINUTE, 0); |
| | | calendar.set(Calendar.HOUR_OF_DAY, 0); |
| | | // calendar.add(Calendar.DAY_OF_YEAR, 1);//天粒度数据23:58分插入,运行时间改为第二天 |
| | | } |
| | | PredictResultVO predictResult; |
| | | if (!predictItem.getStatus().equals(ItemStatus.STATUS1.getCode())) { |
| | |
| | | try { |
| | | predictResultHandler.savePredictResult(predictResult); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | itemRunStatusEnum = ItemRunStatusEnum.MODELRESULTSAVEERROR; |
| | | throw new RuntimeException("模型结果保存异常,result:" + predictResult); |
| | | } |