Browse Source

高速云事件倒序

develop
lau572 3 months ago
parent
commit
1560b57886
  1. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

2
zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

@ -1665,7 +1665,7 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
map.put("num", subclass.get(key));
list.add(map);
}
list = list.stream().sorted(Comparator.comparing(item -> Long.valueOf(item.get("num").toString()))).collect(Collectors.toList());
list = list.stream().sorted(Comparator.comparing(item -> Long.valueOf(((Map<String, Object>) item).get("num").toString())).reversed()).collect(Collectors.toList());
}
return AjaxResult.success(list);

Loading…
Cancel
Save