Merge remote-tracking branch 'origin/dev_WMS20260401' into dev_WMS20260401

This commit is contained in:
王奎兴
2026-06-10 17:22:59 +08:00
2 changed files with 9 additions and 0 deletions
@@ -229,6 +229,11 @@ public class BusinessDocumentOrderApplicationService {
body.put("billDate", billDate);
// 商品类型取第一个cargo的productType0料件,1半成品,2成品)
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("ieFlag", order.getIeType() != null ? order.getIeType() : "");
body.put("corpCode", corpCode != null ? corpCode : "");
@@ -209,6 +209,10 @@ public class MaterialBaseInfoPO extends BaseVOEntity {
@ApiModelProperty("HS码")
private String hsCode;
@ApiModelProperty("货物类型:0-物料 1-半成品 2-成品")
@Excel(name = "货物类型:0-物料 1-半成品 2-成品")
private Integer goodsType;
@ApiModelProperty("申报单位")
private String declarationUnit;