kangwei:修改bug,优化代码
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
... | @@ -127,7 +127,7 @@ public class TestMetricInfoController { | ... | @@ -127,7 +127,7 @@ public class TestMetricInfoController { |
127 | dataMap.put( metricInfoVO.getEquipmentCode()+"_GZ" , JSUtils.divide(paramMap.get(metricInfoVO.getGzExpress()),60));//故障 | 127 | dataMap.put( metricInfoVO.getEquipmentCode()+"_GZ" , JSUtils.divide(paramMap.get(metricInfoVO.getGzExpress()),60));//故障 |
128 | //时数据 | 128 | //时数据 |
129 | expression = "(60 - "+paramMap.get(metricInfoVO.getYxExpress())+"- "+paramMap.get(metricInfoVO.getGzExpress()) +")/60"; | 129 | expression = "(60 - "+paramMap.get(metricInfoVO.getYxExpress())+"- "+paramMap.get(metricInfoVO.getGzExpress()) +")/60"; |
130 | dataMap.put( metricInfoVO.getEquipmentCode()+"_ZT" , JSUtils.executeExpression(expression) );//暂停 | 130 | dataMap.put( metricInfoVO.getEquipmentCode()+"_ZT" , JSUtils.executeExpression(expression,"0.0") );//暂停 |
131 | } | 131 | } |
132 | dataList.add( dataMap ); | 132 | dataList.add( dataMap ); |
133 | } | 133 | } | ... | ... |
... | @@ -67,10 +67,10 @@ public class EquipmentInfoDurationServiceImpl extends ServiceImpl<EquipmentInfoD | ... | @@ -67,10 +67,10 @@ public class EquipmentInfoDurationServiceImpl extends ServiceImpl<EquipmentInfoD |
67 | List<Map<String, Object>> metricMapList = commonSqlService.queryForList(metric_sql); | 67 | List<Map<String, Object>> metricMapList = commonSqlService.queryForList(metric_sql); |
68 | 68 | ||
69 | 69 | ||
70 | if(startTime.length() < 11 ){ | 70 | if(startTime.length() < 12 ){ |
71 | startTime = startTime +" 00:00:00"; | 71 | startTime = startTime +" 00:00:00"; |
72 | } | 72 | } |
73 | if(endTime.length() < 11 ){ | 73 | if(endTime.length() < 12 ){ |
74 | endTime = endTime +" 23:59:59"; | 74 | endTime = endTime +" 23:59:59"; |
75 | } | 75 | } |
76 | String tsStartTime = String.valueOf(DateUtils.getMillis(DateUtils.parseDate(startTime, "yyyy-MM-dd HH:mm:ss")) / 1000L); | 76 | String tsStartTime = String.valueOf(DateUtils.getMillis(DateUtils.parseDate(startTime, "yyyy-MM-dd HH:mm:ss")) / 1000L); | ... | ... |
-
请 注册 或 登录 后发表评论