| | |
| | | Integer cycleTime=0; |
| | | //获取预警分析周期阈值 |
| | | AppParam appParam = appParamService.getAlarmAnalysisCycle(); |
| | | if(res.getIntervalTime()==null){ |
| | | cycleTime=appParam.getParamValue().intValue(); |
| | | }else{ |
| | | //将数据库中时间间隔修改 |
| | | appParamService.updateAlarmAnalysisCycle(res.getIntervalTime()); |
| | | cycleTime=res.getIntervalTime(); |
| | | } |
| | | cycleTime=appParam.getParamValue().intValue(); |
| | | Date cyscleDate=ActionUtil.getDateAdd(ThreadLocalUtil.parse(res.getStartTime(),1),cycleTime*(-1)); |
| | | //获取cyscleDate到现在所有的历史实时数据 |
| | | List<List<Date>> monthTimeList = DateUtil.getMonthTime(cyscleDate,new Date()); |