Commit b0cca8c5 by huluobin

美甲师排版去重

parent e0586618
......@@ -25,9 +25,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.*;
import java.util.stream.Collectors;
......@@ -86,6 +84,8 @@ public class StoreClassesTechnicianServiceImpl extends ServiceImpl<StoreClassesT
}
storeTechnician.setId(storeTechnician.getTechnicianId());
});
list = list.stream()
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(StoreTechnician::getId))), ArrayList::new));
list.sort(Comparator.comparing(StoreTechnician::getId));
return list;
}
......
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