Commit 07b320d3 by 何文超

更新排序

parent be65fe5c
package com.gic.plug.web.controller;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.apache.commons.lang.StringUtils;
......@@ -76,6 +78,12 @@ public class ScreeningController {
}
List<EsScreeningEnterpriseCategorySceneInfoDTO> list = this.esScreeningInitService
.queryEsScreeningByEnterpriseAndScene(enterpriseId, sceneCode);
Collections.sort(list, new Comparator<EsScreeningEnterpriseCategorySceneInfoDTO>() {
@Override
public int compare(EsScreeningEnterpriseCategorySceneInfoDTO o1, EsScreeningEnterpriseCategorySceneInfoDTO o2) {
return o1.getCreateTime().compareTo(o2.getCreateTime());
}
});
List<EsScreeningChainDetailDTO> all = new ArrayList<>();
for (EsScreeningEnterpriseCategorySceneInfoDTO dto : list) {
String categoryId = dto.getSceneCategoryId();
......
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