Compare commits
2 Commits
2114d2a0cf
...
345aaa77af
Author | SHA1 | Date | |
---|---|---|---|
|
345aaa77af | ||
|
8fcdb5ef18 |
@ -274,6 +274,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
List<RepairProject> repairProjects = projectService.listByIds(ids);
|
List<RepairProject> repairProjects = projectService.listByIds(ids);
|
||||||
items.forEach(item -> repairProjects.stream().filter(i -> i.getId().equals(item.getProjectId())).findFirst().ifPresent(item::setProject));
|
items.forEach(item -> repairProjects.stream().filter(i -> i.getId().equals(item.getProjectId())).findFirst().ifPresent(item::setProject));
|
||||||
}
|
}
|
||||||
|
result.setProjects(projects);
|
||||||
|
|
||||||
// 取配件
|
// 取配件
|
||||||
List<DlRepairTitemReqVO> wares = items.stream().filter(item -> item.getItemType().equals("02")).collect(Collectors.toList());
|
List<DlRepairTitemReqVO> wares = items.stream().filter(item -> item.getItemType().equals("02")).collect(Collectors.toList());
|
||||||
@ -282,6 +283,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
List<RepairWares> repairWares = waresService.listByIds(ids);
|
List<RepairWares> repairWares = waresService.listByIds(ids);
|
||||||
items.forEach(item -> repairWares.stream().filter(i -> i.getId().equals(item.getPartId())).findFirst().ifPresent(item::setWare));
|
items.forEach(item -> repairWares.stream().filter(i -> i.getId().equals(item.getPartId())).findFirst().ifPresent(item::setWare));
|
||||||
}
|
}
|
||||||
|
result.setWares(wares);
|
||||||
// 取附加
|
// 取附加
|
||||||
List<DlRepairTitemReqVO> others = items.stream().filter(item -> item.getItemType().equals("03")).collect(Collectors.toList());
|
List<DlRepairTitemReqVO> others = items.stream().filter(item -> item.getItemType().equals("03")).collect(Collectors.toList());
|
||||||
if (CollectionUtil.isNotEmpty(others)) {
|
if (CollectionUtil.isNotEmpty(others)) {
|
||||||
|
@ -45,4 +45,7 @@ public class DlRepairTicketsRespVO extends DlRepairTickets {
|
|||||||
private CustomerMain customerInfo;
|
private CustomerMain customerInfo;
|
||||||
/** 车辆信息 */
|
/** 车辆信息 */
|
||||||
private CarMainRespVO carInfo;
|
private CarMainRespVO carInfo;
|
||||||
|
List<DlRepairTitemReqVO> wares;
|
||||||
|
List<DlRepairTitemReqVO> projects;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user