Commit f4640623 by jianan

审批问题18

parent 3a1f9140
......@@ -154,6 +154,12 @@ public class AgmsHiringDALServiceImpl implements AgmsHiringDALService {
}
}
return dataList;
// 每个审核步骤可能查询出重复数据, 需去重
List<PractitionerHiringListInfo> uniqueList = dataList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(
// 利用 TreeSet 的排序去重构造函数来达到去重元素的目的
// 根据hiringBasicInfoId去重
() -> new TreeSet<>(Comparator.comparingLong(PractitionerHiringListInfo::getHiringBasicInfoId))), ArrayList::new));
return uniqueList;
}
}
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