仓库对配件申请单的操作

This commit is contained in:
xiaofajia 2024-12-05 16:29:55 +08:00
parent 641a686fca
commit 3cf3f01079
2 changed files with 8 additions and 4 deletions

View File

@ -438,10 +438,11 @@ public class DlTicketWaresServiceImpl extends ServiceImpl<DlTicketWaresMapper, D
// 更新配件申请子表
// 分领料和退料
// 先取出要操作的子表数据
List<DlTwItem> oldData = twItemService.list(new LambdaQueryWrapper<DlTwItem>().and(item -> {
item.eq(DlTwItem::getTwId, respVO.getRepairSo().getTwId())
.in(DlTwItem::getWaresId, respVO.getRepairSois().stream().map(DlRepairSoi::getGoodsId).collect(Collectors.toList()));
}));
List<DlTwItem> oldData = twItemService.listByIds(respVO.getIds());
// List<DlTwItem> oldData = twItemService.list(new LambdaQueryWrapper<DlTwItem>().and(item -> {
// item.eq(DlTwItem::getTwId, respVO.getRepairSo().getTwId())
// .in(DlTwItem::getWaresId, respVO.getRepairSois().stream().map(DlRepairSoi::getGoodsId).collect(Collectors.toList()));
// }));
// 要操作的库存数据
List<RepairWares> wares = repairWaresService.list(new LambdaQueryWrapper<RepairWares>().in(RepairWares::getId, respVO.getRepairSois().stream().map(DlRepairSoi::getGoodsId).collect(Collectors.toList())));
Map<String, String> waresNameMap = wares.stream().collect(Collectors.toMap(RepairWares::getId, RepairWares::getName));

View File

@ -36,4 +36,7 @@ public class DlTicketWaresRespVO extends DlTicketWares {
/** 通知领料时上传的图片 */
private String images;
/** 操作的配件申请单子表的ids */
private List<String> ids;
}