奥体项目数据接口修改
正在显示
1 个修改的文件
包含
8 行增加
和
4 行删除
... | @@ -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,6 +1430,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1430,6 +1430,7 @@ 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 | if(!"null".equals(entry.getKey())&&!"".equals(entry.getKey())){ | ||
1433 | EchartResult echartResult = new EchartResult(); | 1434 | EchartResult echartResult = new EchartResult(); |
1434 | echartResult.setName(time); | 1435 | echartResult.setName(time); |
1435 | echartResult.setValue(entry.getValue().toString()); | 1436 | echartResult.setValue(entry.getValue().toString()); |
... | @@ -1438,6 +1439,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1438,6 +1439,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1438 | } | 1439 | } |
1439 | } | 1440 | } |
1440 | } | 1441 | } |
1442 | } | ||
1441 | List<Map<String, Object>> fDataList = factoryInfoService.queryReportData(AT_ID, fPgField, start, end, timeStep); | 1443 | List<Map<String, Object>> fDataList = factoryInfoService.queryReportData(AT_ID, fPgField, start, end, timeStep); |
1442 | for (Map<String, Object> bmap : fDataList) { | 1444 | for (Map<String, Object> bmap : fDataList) { |
1443 | String time = ""; | 1445 | String time = ""; |
... | @@ -1448,6 +1450,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1448,6 +1450,7 @@ 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())){ |
1453 | if(!"null".equals(entry.getKey())&&!"".equals(entry.getKey())){ | ||
1451 | EchartResult echartResult = new EchartResult(); | 1454 | EchartResult echartResult = new EchartResult(); |
1452 | echartResult.setName(time); | 1455 | echartResult.setName(time); |
1453 | echartResult.setValue(entry.getValue().toString()); | 1456 | echartResult.setValue(entry.getValue().toString()); |
... | @@ -1456,6 +1459,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1456,6 +1459,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1456 | } | 1459 | } |
1457 | } | 1460 | } |
1458 | } | 1461 | } |
1462 | } | ||
1459 | map.put("pump", pumpList); | 1463 | map.put("pump", pumpList); |
1460 | map.put("flow", flowList); | 1464 | map.put("flow", flowList); |
1461 | return map; | 1465 | return map; |
... | @@ -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 | } | ... | ... |
-
请 注册 或 登录 后发表评论