62ce9588 张雷

奥体项目修改返回时间的格式

1 个父辈 983b9694
......@@ -1513,7 +1513,15 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
if(dataList.size()>0){
for (Map<String, Object> map:dataList) {
EchartResult echartResult = new EchartResult();
echartResult.setName(map.get("time").toString());
String datatime = map.get("time").toString();
if("today".equals(timeType)){
datatime = datatime.substring(11,16);
}else if("week".equals(timeType)){
datatime = datatime.substring(5,16);
}else{
datatime = datatime.substring(5,10);
}
echartResult.setName(datatime);
if("p".equals(type)){
if(map.get(wList.get(0).getMonitorId())==null){
echartResult.setValue("");
......@@ -1539,7 +1547,14 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
}else if("f".equals(type)){
for (WhatStructData whatStructData:wList) {
EchartResult eResult = new EchartResult();
eResult.setName(map.get("time").toString());
if("today".equals(timeType)){
datatime = datatime.substring(11,16);
}else if("week".equals(timeType)){
datatime = datatime.substring(5,16);
}else{
datatime = datatime.substring(5,10);
}
eResult.setName(datatime);
if(whatStructData.getMonitorId()==null){
eResult.setValue("");
}else{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!