diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java index 3b27d16a1..a677abc89 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java @@ -161,6 +161,12 @@ public class EmisWaybillAttachmentController extends EmisBaseController */ public AjaxResult addAttachment(EmisWaybillAttachment emisWaybillAttachment) { + + if(StringUtils.isEmpty(emisWaybillAttachment.getFileUrl())){ + return AjaxResult.error("附件路径为空!"); + } + + // 0-GOODS_PIC 1-揽收底单 2-签收底单 if(WaybillAttachType.SIGNED_PIC.typeCode.equals(emisWaybillAttachment.getAttachType())){ // 检查运单是否签收,如果没有签收需要做图片签收