仓库对配件申请单的操作
This commit is contained in:
parent
641a686fca
commit
3cf3f01079
@ -438,10 +438,11 @@ public class DlTicketWaresServiceImpl extends ServiceImpl<DlTicketWaresMapper, D
|
|||||||
// 更新配件申请子表
|
// 更新配件申请子表
|
||||||
// 分领料和退料
|
// 分领料和退料
|
||||||
// 先取出要操作的子表数据
|
// 先取出要操作的子表数据
|
||||||
List<DlTwItem> oldData = twItemService.list(new LambdaQueryWrapper<DlTwItem>().and(item -> {
|
List<DlTwItem> oldData = twItemService.listByIds(respVO.getIds());
|
||||||
item.eq(DlTwItem::getTwId, respVO.getRepairSo().getTwId())
|
// List<DlTwItem> oldData = twItemService.list(new LambdaQueryWrapper<DlTwItem>().and(item -> {
|
||||||
.in(DlTwItem::getWaresId, respVO.getRepairSois().stream().map(DlRepairSoi::getGoodsId).collect(Collectors.toList()));
|
// 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())));
|
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));
|
Map<String, String> waresNameMap = wares.stream().collect(Collectors.toMap(RepairWares::getId, RepairWares::getName));
|
||||||
|
@ -36,4 +36,7 @@ public class DlTicketWaresRespVO extends DlTicketWares {
|
|||||||
|
|
||||||
/** 通知领料时上传的图片 */
|
/** 通知领料时上传的图片 */
|
||||||
private String images;
|
private String images;
|
||||||
|
|
||||||
|
/** 操作的配件申请单子表的ids */
|
||||||
|
private List<String> ids;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user