货物类型查询修改

This commit is contained in:
zhaoqing
2026-06-03 17:48:56 +08:00
parent 78c7fab57e
commit 5fee80e827
@@ -2657,7 +2657,7 @@ public class StockShelfOrderApplicationService {
String mtpckEndprdTypecd = "E";
if (materialBaseInfoId != null) {
MaterialBaseInfo materialBaseIn = materialBaseInfoMapper.selectById(materialBaseInfoId);
if (materialBaseIn != null) {
if (materialBaseIn.getGoodsType() != null) {
Integer goodsType = materialBaseIn.getGoodsType();
if (goodsType == 0) {
mtpckEndprdTypecd = "M";
@@ -2665,6 +2665,8 @@ public class StockShelfOrderApplicationService {
mtpckEndprdTypecd = "E";
} else if (goodsType == 1) {
mtpckEndprdTypecd = "E";
}else{
throw new ServiceException("货物类型不存在");
}
}
}