This commit is contained in:
linfso 2024-06-22 13:15:14 +08:00
parent c36a3fd395
commit 4ba9f14c34

View File

@ -358,6 +358,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
String packTypeCvtStr="";
String [] packTypeArr = packTypeStr.split(",");
for(String itemLabel:packTypeArr){
if(StringUtils.isEmpty(itemLabel)){
continue;
}
String dictValue=DictUtils.getDictValue("emis_tab_packing_type",itemLabel);
if(StringUtils.isEmpty(dictValue)){
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "包装类型["+itemLabel+"]不正确");
@ -367,6 +370,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
packTypeCvtStr = packTypeCvtStr + dictValue + ",";
}
}
if(StringUtils.isEmpty(packTypeCvtStr)){
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "包装类型不正确");
}
emisWaybillSave.setPackType(packTypeCvtStr);