List<CustDto> list = custService.selectListByCust(entity);
List<CustDto> custList = list.stream().filter(e-> StringUtils.isNotBlank(e.getCreateDate()) == true)
.sorted(Comparator.comparing((CustDto c) -> c.getCreateDate()).reversed()
.thenComparing(CustDto::getName)).collect(Collectors.toList());
list.stream().filter(e -> StringUtils.isBlank(e.getCreateDate()) == true)
.sorted(Comparator.comparing((CustDto c) -> c.getName()))
.forEach(c -> custList.add(c));
根据CreateDate是否为空进行列表显示,按照CreateDate进行排序,CreateDate为空则排在最后显示