Compare commits

...

2 Commits

Author SHA1 Message Date
PQZ
345aaa77af Merge branch 'dev' of http://122.51.230.86:3000/dianliang/lanan-system into dev 2024-10-18 23:48:07 +08:00
PQZ
8fcdb5ef18 111 2024-10-18 23:48:04 +08:00
2 changed files with 5 additions and 0 deletions

View File

@ -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)) {

View File

@ -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;
} }