oms小程序出入库明细查询;
This commit is contained in:
+2
@@ -1601,6 +1601,8 @@ public class StockInOrderApplicationService {
|
||||
MaterialBaseInfoPO materialBaseInfo = materialBaseInfoService.getInfo(materialBaseInfoId);
|
||||
if (materialBaseInfo != null && StringUtils.isNotBlank(materialBaseInfo.getMaterialCode())) {
|
||||
materialCode = materialBaseInfo.getMaterialCode();
|
||||
BigDecimal unitPrice = materialBaseInfo.getUnitPrice();
|
||||
d.setUnitPrice(unitPrice);
|
||||
log.info("根据物料ID自动补充料号,物料ID: {}, 料号: {}", materialBaseInfoId, materialCode);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -269,6 +269,10 @@ public class InMaterialDetail extends BaseVOEntity {
|
||||
@Excel(name = "升")
|
||||
private BigDecimal liter;
|
||||
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
@ApiModelProperty("尺寸")
|
||||
@Excel(name = "尺寸")
|
||||
private String dimensions;
|
||||
|
||||
+4
@@ -282,6 +282,10 @@ public class InMaterialDetailPO extends StockInOrderBasePO {
|
||||
@Excel(name = "升")
|
||||
private BigDecimal liter;
|
||||
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
@ApiModelProperty("尺寸")
|
||||
@Excel(name = "尺寸")
|
||||
private String dimensions;
|
||||
|
||||
+4
@@ -276,6 +276,10 @@ public class InMaterialDetailDO extends StockInOrderBaseDO {
|
||||
@Excel(name = "升")
|
||||
private BigDecimal liter;
|
||||
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
@ApiModelProperty("尺寸")
|
||||
@Excel(name = "尺寸")
|
||||
private String dimensions;
|
||||
|
||||
+4
@@ -275,6 +275,10 @@ public class OutMaterialDetail extends BaseVOEntity {
|
||||
@Excel(name = "升")
|
||||
private String liter;
|
||||
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/**
|
||||
* 尺寸
|
||||
*/
|
||||
|
||||
+4
@@ -293,6 +293,10 @@ public class OutMaterialDetailPO extends StockOutOrderBaseDO {
|
||||
@Excel(name = "升")
|
||||
private String liter;
|
||||
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/**
|
||||
* 尺寸
|
||||
*/
|
||||
|
||||
+4
@@ -296,6 +296,10 @@ public class OutMaterialDetailDO extends BaseVOEntity {
|
||||
@Excel(name = "升")
|
||||
private String liter;
|
||||
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/**
|
||||
* 尺寸
|
||||
*/
|
||||
|
||||
+3
@@ -36,6 +36,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -431,6 +432,8 @@ public class ExcelParseService {
|
||||
if (materialList != null && !materialList.isEmpty()) {
|
||||
materialBaseInfoPO = materialList.get(0);
|
||||
materialBaseInfoId = materialBaseInfoPO.getMaterialBaseInfoId();
|
||||
BigDecimal unitPrice = materialBaseInfoPO.getUnitPrice();
|
||||
outMaterialDetailDO.setUnitPrice(unitPrice);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user