Compare commits
2 Commits
bb5c09fd6d
...
2fb5b58c99
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fb5b58c99 | |||
| 7b2881c45f |
@@ -59,9 +59,11 @@ public class EqpEquipmentPartServiceImpl implements IEqpEquipmentPartService {
|
||||
List<EqpEquipmentChecklistVo> checklistList = checklistMapper.selectVoList(checklistLqw);
|
||||
Map<Long, List<EqpEquipmentChecklistVo>> checklistMap = checklistList.stream()
|
||||
.collect(Collectors.groupingBy(EqpEquipmentChecklistVo::getPartId));
|
||||
result.getRecords().forEach(vo ->
|
||||
vo.setChecklistList(checklistMap.getOrDefault(vo.getPartId(), Collections.emptyList()))
|
||||
);
|
||||
result.getRecords().forEach(vo -> {
|
||||
List<EqpEquipmentChecklistVo> items = checklistMap.getOrDefault(vo.getPartId(), Collections.emptyList());
|
||||
items.forEach(checklist -> checklist.setPartName(vo.getInspectPart()));
|
||||
vo.setChecklistList(items);
|
||||
});
|
||||
}
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user