Commit 452a821a authored by duanruiming's avatar duanruiming

[update] 解决前端报错问题

parent d50a5ea9
...@@ -240,8 +240,13 @@ public class SituationDetectionController extends BaseController { ...@@ -240,8 +240,13 @@ public class SituationDetectionController extends BaseController {
public JsonViewObject signalService() throws Exception { public JsonViewObject signalService() throws Exception {
JsonViewObject jsonViewObject = JsonViewObject.newInstance(); JsonViewObject jsonViewObject = JsonViewObject.newInstance();
List<SystemServiceStatusDTO> sysList = SystemServiceStatusTask.sysList; List<SystemServiceStatusDTO> sysList = SystemServiceStatusTask.sysList;
List<SystemServiceStatusDTO> sort = sysList.stream(). List<SystemServiceStatusDTO> sort = null;
try {
sort = sysList.stream().
sorted(Comparator.comparing(SystemServiceStatusDTO::getStartDate)).collect(Collectors.toList()); sorted(Comparator.comparing(SystemServiceStatusDTO::getStartDate)).collect(Collectors.toList());
} catch (Exception e) {
sort = sysList;
}
return jsonViewObject.success(sort); return jsonViewObject.success(sort);
} }
......
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