详情添加单价

This commit is contained in:
zhaoqing
2026-06-04 10:50:34 +08:00
parent eceb008912
commit 08bd6ca59c
2 changed files with 11 additions and 0 deletions
@@ -583,4 +583,9 @@ public class ReservationOutMaterialDetailPO extends ReservationStockOutOrderBase
@ApiModelProperty("调整后面积")
@Excel(name = "调整后面积")
private BigDecimal adjustedArea;
@ApiModelProperty("单价")
@Excel(name = "单价")
private BigDecimal unitPrice;
}
@@ -321,6 +321,12 @@ public class ReservationStockOutOrderApplicationService {
reservationOutMaterialDetailPO.setAdjustedVolume(inventoryAdjustmentRecordPO.getAdjustedVolume());
reservationOutMaterialDetailPO.setAdjustedArea(inventoryAdjustmentRecordPO.getAdjustedArea());
}
if(materialBaseInfoId != null){
MaterialBaseInfoPO materialBaseInfoPO = reservationStockInOrderMapper.getinfo(materialBaseInfoId);
if(materialBaseInfoPO != null && materialBaseInfoPO.getUnitPrice() != null){
reservationOutMaterialDetailPO.setUnitPrice(materialBaseInfoPO.getUnitPrice());
}
}
}
//
// // 性能优化:批量获取批次属性,避免N+1查询问题