This commit is contained in:
linfso 2024-12-03 17:43:08 +08:00
parent e06db5ebc0
commit d13dcb0ff0

View File

@ -1388,6 +1388,15 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setCalcFeeType("1"); emisWaybillSave.setCalcFeeType("1");
} }
// 如果是仓库收货
if("1".equals(emisWaybillSave.getPickupMethod()) ){
if(StringUtils.isEmpty(emisWaybillSave.getIntoWarehouseCode()) ) {
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "仓库不能为空");
}else{
emisWaybillSave.setSendSiteCode(emisWaybillSave.getIntoWarehouseCode());
}
}
// 寄件地址 // 寄件地址
if(StringUtils.isAnyEmpty( if(StringUtils.isAnyEmpty(
emisWaybillSave.getSendCountry(), emisWaybillSave.getSendCountry(),