package com.icil.elsa.test.utils;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.TreeSet;
import java.util.stream.Collectors;
import org.junit.Test;
import lombok.ToString;
import lombok.Data;/**
* 用 java8 对 list 按照多个字段进行去重 id , message ,orderNO 去重
* 对对象 MilestonesValidTO 按照 field
* 参考1:https://blog.csdn.net/robotfive/article/details/89200294* 参考2:https://blog.csdn.net/weixin_39643007/article/details/90511098* @throws Exception*/
public classGroupBYTest {
@Data
@ToStringpublic classMilestonesValidTO {privateString id;privateString message;privateString orderNO;privateString courierBillNo;privateString status;publicMilestonesValidTO(String id, String message, String orderNO, String courierBillNo) {
super();this.i