|
|
@ -2691,12 +2691,12 @@ public class QcServiceImpl implements QcService { |
|
|
public List<QcFAIRecordData> getResourceList(QcFAIRecordData data) { |
|
|
public List<QcFAIRecordData> getResourceList(QcFAIRecordData data) { |
|
|
// 根据工单号和工序号查出所有数据 |
|
|
// 根据工单号和工序号查出所有数据 |
|
|
List<QcFAIRecordData> list = qcMapper.getResourceList(data); |
|
|
List<QcFAIRecordData> list = qcMapper.getResourceList(data); |
|
|
// 去重 |
|
|
|
|
|
List<QcFAIRecordData> collect = list.stream().collect( |
|
|
|
|
|
Collectors.collectingAndThen( |
|
|
|
|
|
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(QcFAIRecordData::getResourceId))), ArrayList::new |
|
|
|
|
|
)); |
|
|
|
|
|
return collect; |
|
|
|
|
|
|
|
|
// // 去重 |
|
|
|
|
|
// List<QcFAIRecordData> collect = list.stream().collect( |
|
|
|
|
|
// Collectors.collectingAndThen( |
|
|
|
|
|
// Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(QcFAIRecordData::getResourceId))), ArrayList::new |
|
|
|
|
|
// )); |
|
|
|
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ -2710,12 +2710,12 @@ public class QcServiceImpl implements QcService { |
|
|
public List<QcFAIRecordData> getPartList(QcFAIRecordData data) { |
|
|
public List<QcFAIRecordData> getPartList(QcFAIRecordData data) { |
|
|
// 根据工单号查出所有数据 |
|
|
// 根据工单号查出所有数据 |
|
|
List<QcFAIRecordData> list = qcMapper.getOperationList(data); |
|
|
List<QcFAIRecordData> list = qcMapper.getOperationList(data); |
|
|
// 去重 |
|
|
|
|
|
List<QcFAIRecordData> collect = list.stream().collect( |
|
|
|
|
|
Collectors.collectingAndThen( |
|
|
|
|
|
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(QcFAIRecordData::getPartNo))), ArrayList::new |
|
|
|
|
|
)); |
|
|
|
|
|
return collect; |
|
|
|
|
|
|
|
|
// // 去重 |
|
|
|
|
|
// List<QcFAIRecordData> collect = list.stream().collect( |
|
|
|
|
|
// Collectors.collectingAndThen( |
|
|
|
|
|
// Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(QcFAIRecordData::getPartNo))), ArrayList::new |
|
|
|
|
|
// )); |
|
|
|
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|