md
This commit is contained in:
parent
c36a3fd395
commit
4ba9f14c34
@ -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);
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user