奥体项目数据接口修改
正在显示
1 个修改的文件
包含
18 行增加
和
14 行删除
... | @@ -1397,8 +1397,8 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1397,8 +1397,8 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1397 | end = endDate + " 23:59:59"; | 1397 | end = endDate + " 23:59:59"; |
1398 | }else if("custom".equals(timeType)){ | 1398 | }else if("custom".equals(timeType)){ |
1399 | timeStep = "day"; | 1399 | timeStep = "day"; |
1400 | start = inputQueryParams.getStart(); | 1400 | start = inputQueryParams.getStart()+ " 00:00:00"; |
1401 | end = inputQueryParams.getEnd(); | 1401 | end = inputQueryParams.getEnd() + " 23:59:59"; |
1402 | }else { | 1402 | }else { |
1403 | timeStep = "day"; | 1403 | timeStep = "day"; |
1404 | } | 1404 | } |
... | @@ -1430,11 +1430,13 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1430,11 +1430,13 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1430 | } | 1430 | } |
1431 | for (Map.Entry<String, Object> entry : bmap.entrySet()) { | 1431 | for (Map.Entry<String, Object> entry : bmap.entrySet()) { |
1432 | if(!"time".equals(entry.getKey())){ | 1432 | if(!"time".equals(entry.getKey())){ |
1433 | EchartResult echartResult = new EchartResult(); | 1433 | if(!"null".equals(entry.getKey())&&!"".equals(entry.getKey())){ |
1434 | echartResult.setName(time); | 1434 | EchartResult echartResult = new EchartResult(); |
1435 | echartResult.setValue(entry.getValue().toString()); | 1435 | echartResult.setName(time); |
1436 | echartResult.setSeries(monitorMap.get(entry.getKey()).toString()); | 1436 | echartResult.setValue(entry.getValue().toString()); |
1437 | pumpList.add(echartResult); | 1437 | echartResult.setSeries(monitorMap.get(entry.getKey()).toString()); |
1438 | pumpList.add(echartResult); | ||
1439 | } | ||
1438 | } | 1440 | } |
1439 | } | 1441 | } |
1440 | } | 1442 | } |
... | @@ -1448,11 +1450,13 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1448,11 +1450,13 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1448 | } | 1450 | } |
1449 | for (Map.Entry<String, Object> entry : bmap.entrySet()) { | 1451 | for (Map.Entry<String, Object> entry : bmap.entrySet()) { |
1450 | if(!"time".equals(entry.getKey())){ | 1452 | if(!"time".equals(entry.getKey())){ |
1451 | EchartResult echartResult = new EchartResult(); | 1453 | if(!"null".equals(entry.getKey())&&!"".equals(entry.getKey())){ |
1452 | echartResult.setName(time); | 1454 | EchartResult echartResult = new EchartResult(); |
1453 | echartResult.setValue(entry.getValue().toString()); | 1455 | echartResult.setName(time); |
1454 | echartResult.setSeries(monitorMap.get(entry.getKey()).toString()); | 1456 | echartResult.setValue(entry.getValue().toString()); |
1455 | flowList.add(echartResult); | 1457 | echartResult.setSeries(monitorMap.get(entry.getKey()).toString()); |
1458 | flowList.add(echartResult); | ||
1459 | } | ||
1456 | } | 1460 | } |
1457 | } | 1461 | } |
1458 | } | 1462 | } |
... | @@ -1500,8 +1504,8 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1500,8 +1504,8 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1500 | end = endDate + " 23:59:59"; | 1504 | end = endDate + " 23:59:59"; |
1501 | }else if("custom".equals(timeType)){ | 1505 | }else if("custom".equals(timeType)){ |
1502 | timeStep = "day"; | 1506 | timeStep = "day"; |
1503 | start = inputQueryParams.getStart(); | 1507 | start = inputQueryParams.getStart()+ " 00:00:00"; |
1504 | end = inputQueryParams.getEnd(); | 1508 | end = inputQueryParams.getEnd() + " 23:59:59"; |
1505 | }else { | 1509 | }else { |
1506 | timeStep = "day"; | 1510 | timeStep = "day"; |
1507 | } | 1511 | } | ... | ... |
-
请 注册 或 登录 后发表评论