Commit d1919f48 authored by litengwei's avatar litengwei

设备平台bug

parent 3da77a35
......@@ -232,7 +232,14 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
} else if (t2.get("update_time") instanceof Boolean) {
return -1;
} else {
return Long.valueOf(t1.get("update_time").toString()).compareTo(Long.valueOf(t2.get("update_time").toString()));
try {
Long s1 = DateUtils.dateParse(DateUtils.DATE_TIME_PATTERN, t1.get("update_time").toString()).getTime();
Long s2 = DateUtils.dateParse(DateUtils.DATE_TIME_PATTERN, t2.get("update_time").toString()).getTime();
return s1.compareTo(s2);
} catch (ParseException e) {
e.printStackTrace();
return -1;
}
}
});
pressurePumpInfo.setRecords(records);
......
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