/**
* 數據去重
* @param list
* @return
*/
private List<XXEntity> removeCopyData(List<XXEntity> list) {
// 根據XxId去除重復數據
List<XXEntity> uniqueList = list.stream().collect(
collectingAndThen(toCollection(() -> new TreeSet<>(comparing(XXEntity::getXxId))), ArrayList::new)
);
return uniqueList;
}