详情添加单价

This commit is contained in:
zhaoqing
2026-06-04 14:23:51 +08:00
parent 0d7d52ef60
commit a299bacda9
2 changed files with 6 additions and 0 deletions
@@ -281,10 +281,12 @@ public class StockShelfOrderApplicationService {
MaterialBaseInfoPO materialBaseInfoPO = materialBaseInfoMap.get(shelfMaterialDetailPO.getMaterialBaseInfoId());
shelfMaterialDetailPO.setCopyCode(materialBaseInfoPO != null ? materialBaseInfoPO.getCopyCode() : null);
shelfMaterialDetailPO.setCurrency(materialBaseInfoPO != null ? materialBaseInfoPO.getCurrency() : null);
shelfMaterialDetailPO.setUnitPrice(materialBaseInfoPO != null ? materialBaseInfoPO.getUnitPrice() : null);
for (ShelfMaterialDetailPO child : shelfMaterialDetailPO.getChildren()) {
MaterialBaseInfoPO materialBaseInfoPOChild = materialBaseInfoMap.get(child.getMaterialBaseInfoId());
child.setCopyCode(materialBaseInfoPOChild != null ? materialBaseInfoPOChild.getCopyCode() : null);
child.setCurrency(materialBaseInfoPOChild != null ? materialBaseInfoPOChild.getCurrency() : null);
child.setUnitPrice(materialBaseInfoPOChild != null ? materialBaseInfoPOChild.getUnitPrice() : null);
}
}
@@ -387,4 +387,8 @@ public class ShelfMaterialDetailPO extends BaseVOEntity {
@ApiModelProperty("币制")
@Excel(name = "币制")
private String currency;
@ApiModelProperty("单价")
@Excel(name = "单价")
private BigDecimal unitPrice;
}