Merge remote-tracking branch 'origin/dev_WMS20260401' into dev_WMS20260401
This commit is contained in:
+5
@@ -229,6 +229,11 @@ public class BusinessDocumentOrderApplicationService {
|
|||||||
body.put("billDate", billDate);
|
body.put("billDate", billDate);
|
||||||
// 商品类型取第一个cargo的productType(0料件,1半成品,2成品)
|
// 商品类型取第一个cargo的productType(0料件,1半成品,2成品)
|
||||||
Integer goodsType = (cargoList != null && !cargoList.isEmpty()) ? cargoList.get(0).getProductType() : null;
|
Integer goodsType = (cargoList != null && !cargoList.isEmpty()) ? cargoList.get(0).getProductType() : null;
|
||||||
|
if (goodsType == null && cargoList != null && !cargoList.isEmpty() && cargoList.get(0).getMaterialBaseInfoId() != null) {
|
||||||
|
// productType为空时,从物料表查goodsType作为兜底
|
||||||
|
MaterialBaseInfoPO material = reservationStockInOrderMapper.getinfo(cargoList.get(0).getMaterialBaseInfoId());
|
||||||
|
goodsType = material != null ? material.getGoodsType() : null;
|
||||||
|
}
|
||||||
body.put("goodsType", goodsType != null ? goodsType : "");
|
body.put("goodsType", goodsType != null ? goodsType : "");
|
||||||
body.put("ieFlag", order.getIeType() != null ? order.getIeType() : "");
|
body.put("ieFlag", order.getIeType() != null ? order.getIeType() : "");
|
||||||
body.put("corpCode", corpCode != null ? corpCode : "");
|
body.put("corpCode", corpCode != null ? corpCode : "");
|
||||||
|
|||||||
+4
@@ -209,6 +209,10 @@ public class MaterialBaseInfoPO extends BaseVOEntity {
|
|||||||
@ApiModelProperty("HS码")
|
@ApiModelProperty("HS码")
|
||||||
private String hsCode;
|
private String hsCode;
|
||||||
|
|
||||||
|
@ApiModelProperty("货物类型:0-物料 1-半成品 2-成品")
|
||||||
|
@Excel(name = "货物类型:0-物料 1-半成品 2-成品")
|
||||||
|
private Integer goodsType;
|
||||||
|
|
||||||
@ApiModelProperty("申报单位")
|
@ApiModelProperty("申报单位")
|
||||||
private String declarationUnit;
|
private String declarationUnit;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user