动火各个模块查询时按照创建时间降序排序

liujun0703-新项目开发^2^2
WenShiJun 2024-06-04 10:58:14 +08:00
parent 6e4f31f205
commit 42dc26afd5
1 changed files with 3 additions and 1 deletions

View File

@ -332,7 +332,9 @@ public class HotworkCfdServiceImpl implements HotworkCfdService {
this.addInfo(dto);
}
return list;
return list.stream()
.sorted((o1, o2) -> o2.getString("CREATTIME").compareTo(o1.getString("CREATTIME")))
.collect(Collectors.toList());
}
public List<PageData> jhlist(Page page)throws Exception{
return hotworkCfdMapper.jhdatalistPage(page);