diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java index 1f789bf0..4c5ff2ce 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java @@ -440,7 +440,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl(); - //配件没传,去库里面查需要的配件 + if(null!=respVO.getRepairWaresList()){ + repairItemList= new ArrayList<>(); + //走的是更新配件库价格 + Map updateMap = respVO.getRepairWaresList().stream().collect(Collectors.toMap(RepairWares::getId,RepairWares::getPrice)); + //更新配件库的价格 + List updateWaresList = new ArrayList<>(); + //去库里面查需要的配件 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper() .eq(DlTwItem::getTwId, mainId); List applyList = twItemService.list(queryWrapper); @@ -262,7 +266,8 @@ public class DlTicketWaresServiceImpl extends ServiceImpl repairSois; + + /** 更新配件库子表价格 */ + private List repairWaresList; }