This commit is contained in:
linfso 2024-06-22 12:04:33 +08:00
parent 685ff377c8
commit 06499684e0

View File

@ -332,6 +332,23 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
}
emisWaybillSave.setPickupMethod(pickupMethod);
// 包装类型
String packTypeStr = emisWaybillSave.getPackType();
if(StringUtils.isEmpty(packTypeStr)){
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "包装类型不正确");
}
String packTypeCvtStr="";
String [] packTypeArr = packTypeStr.split(",");
for(String itemLabel:packTypeArr){
String dictValue=DictUtils.getDictValue("emis_tab_packing_type",itemLabel);
if(!StringUtils.isEmpty(dictValue)) {
packTypeCvtStr = packTypeCvtStr + dictValue + ",";
}
}
emisWaybillSave.setPackType(packTypeCvtStr);
// 派送方式
String dispatchMethod=DictUtils.getDictValue("emis_tab_dispatch_mode",emisWaybillSave.getDispatchMethod());
if(dispatchMethod==null){
@ -354,6 +371,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
EmisCustomerUser emisCustomerUser=getCustomerUserByMonthlyPayCode(emisWaybillSave.getCustNo());
emisWaybillSave.setCustomerCode(emisCustomerUser.getCustomerCode());
emisWaybillSave.setCustomerName(emisCustomerUser.getCustomerName());
}else{
}