Commit 89605d6e authored by litengwei's avatar litengwei

物联趋势图差8小时问题

parent 2aaaecad
......@@ -915,14 +915,10 @@ public class TopographyController extends AbstractBaseController {
Date useDate = null;
String indexKey = null;
if (vos.get(i).getKey().equals("time")) {
String strDate = String.valueOf(vos.get(i).getValue()).substring(0, 19);
SimpleDateFormat sdf = new SimpleDateFormat(ISO8601_DATE_HOUR_MIN_SEC);
useDate = sdf.parse(strDate);
useDate = dateParse(vos.get(i).getValue().toString());
indexKey = String.valueOf(vos.get(i + 1).getKey());
} else {
String strDate = String.valueOf(vos.get(i + 1).getValue()).substring(0, 19);
SimpleDateFormat sdf = new SimpleDateFormat(ISO8601_DATE_HOUR_MIN_SEC);
useDate = sdf.parse(strDate);
useDate = dateParse(vos.get(i).getValue().toString());
indexKey = String.valueOf(vos.get(i).getKey());
}
if (!dateMap.containsKey(indexKey)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment