上架详情收货详情增加是否抄码标识

This commit is contained in:
zhou-hongcheng
2026-04-16 15:34:15 +08:00
parent 6fb7d6b991
commit 62f09f74f6
4 changed files with 17 additions and 1 deletions
@@ -261,6 +261,14 @@ public class StockShelfOrderApplicationService {
log.warn("获取物料基础信息失败,物料基础信息ID:{},错误:{}", materialBaseInfoId, e.getMessage());
}
}
for (ShelfMaterialDetailPO shelfMaterialDetailPO : shelfMaterialDetailPOList) {
MaterialBaseInfoPO materialBaseInfoPO = materialBaseInfoMap.get(shelfMaterialDetailPO.getMaterialBaseInfoId());
shelfMaterialDetailPO.setCopyCode(materialBaseInfoPO != null ? materialBaseInfoPO.getCopyCode() : null);
for (ShelfMaterialDetailPO child : shelfMaterialDetailPO.getChildren()) {
MaterialBaseInfoPO materialBaseInfoPOChild = materialBaseInfoMap.get(child.getMaterialBaseInfoId());
child.setCopyCode(materialBaseInfoPOChild != null ? materialBaseInfoPOChild.getCopyCode() : null);
}
}
// 4.2 批量查询物料条码信息(单位代码为EA的条码)
Map<Long, MaterialBarCodePO> materialBarCodeMap = new HashMap<>();
@@ -356,5 +356,7 @@ public class ReceiptMaterialDetailPO extends BaseVOEntity {
@Excel(name = "抄码数量克重详情")
private String copyDetails;
@ApiModelProperty("是否抄码: 1-是 2-否")
@Excel(name = "是否抄码: 1-是 2-否")
private Integer copyCode;
}
@@ -356,4 +356,8 @@ public class ShelfMaterialDetailPO extends BaseVOEntity {
@ApiModelProperty("LOT编号")
@Excel(name = "LOT编号")
private String lotNumber;
@ApiModelProperty("是否抄码: 1-是 2-否")
@Excel(name = "是否抄码: 1-是 2-否")
private Integer copyCode;
}