Commit 9dd40d68 by huangZW

111

parent 10fb17ae
......@@ -135,10 +135,10 @@ public class StoreController extends WebBaseController{
Map<Integer,StoreVO> map = com.gic.commons.util.CollectionUtil.toMap(resultList, "clerkType");
if(map.containsKey(1)){
//店长
resultList = resultList.stream().sorted(Comparator.comparing(StoreVO::getBindFlag).thenComparing(StoreVO::getClerkType).reversed().thenComparing(StoreVO::getCreateTime).reversed()).collect(Collectors.toList());
resultList = resultList.stream().sorted(Comparator.comparing(StoreVO::getBindFlag).thenComparing(StoreVO::getClerkType).thenComparing(StoreVO::getCreateTime).reversed()).collect(Collectors.toList());
}else{
//店员
resultList = resultList.stream().sorted(Comparator.comparing(StoreVO::getBindFlag).thenComparing(StoreVO::getClerkType).reversed().thenComparing(StoreVO::getCreateTime).reversed()).collect(Collectors.toList());
resultList = resultList.stream().sorted(Comparator.comparing(StoreVO::getBindFlag).thenComparing(StoreVO::getClerkType).thenComparing(StoreVO::getCreateTime).reversed()).collect(Collectors.toList());
}
......
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