详情添加单价
This commit is contained in:
+5
@@ -583,4 +583,9 @@ public class ReservationOutMaterialDetailPO extends ReservationStockOutOrderBase
|
|||||||
@ApiModelProperty("调整后面积")
|
@ApiModelProperty("调整后面积")
|
||||||
@Excel(name = "调整后面积")
|
@Excel(name = "调整后面积")
|
||||||
private BigDecimal adjustedArea;
|
private BigDecimal adjustedArea;
|
||||||
|
|
||||||
|
@ApiModelProperty("单价")
|
||||||
|
@Excel(name = "单价")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
|
||||||
}
|
}
|
||||||
+6
@@ -321,6 +321,12 @@ public class ReservationStockOutOrderApplicationService {
|
|||||||
reservationOutMaterialDetailPO.setAdjustedVolume(inventoryAdjustmentRecordPO.getAdjustedVolume());
|
reservationOutMaterialDetailPO.setAdjustedVolume(inventoryAdjustmentRecordPO.getAdjustedVolume());
|
||||||
reservationOutMaterialDetailPO.setAdjustedArea(inventoryAdjustmentRecordPO.getAdjustedArea());
|
reservationOutMaterialDetailPO.setAdjustedArea(inventoryAdjustmentRecordPO.getAdjustedArea());
|
||||||
}
|
}
|
||||||
|
if(materialBaseInfoId != null){
|
||||||
|
MaterialBaseInfoPO materialBaseInfoPO = reservationStockInOrderMapper.getinfo(materialBaseInfoId);
|
||||||
|
if(materialBaseInfoPO != null && materialBaseInfoPO.getUnitPrice() != null){
|
||||||
|
reservationOutMaterialDetailPO.setUnitPrice(materialBaseInfoPO.getUnitPrice());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// // 性能优化:批量获取批次属性,避免N+1查询问题
|
// // 性能优化:批量获取批次属性,避免N+1查询问题
|
||||||
|
|||||||
Reference in New Issue
Block a user