From c0780a1ae0cc159713b93311e983a129461c31b3 Mon Sep 17 00:00:00 2001 From: linfso Date: Sun, 5 Jan 2025 15:01:02 +0800 Subject: [PATCH] md --- .../service/impl/EmisWaybillServiceImpl.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java index bb3efe396..1be87fce0 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java @@ -1509,21 +1509,18 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb } } - // 保存货物图片 if(!StringUtils.isEmpty(emisWaybillSave.getGoodsPics())){ // 删除历史图片,重新插入图片 emisWaybillAttachmentMapper.deleteByBillCodeAndAttachType(emisWaybillSave.getBillCode(),WaybillAttachType.GOODS_PIC.typeCode); - if(CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){ - EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment(); - goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode); - goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode()); - goodsPicAttachment.setFileUrl(emisWaybillSave.getGoodsPics()); - goodsPicAttachment.setWaybillId(emisWaybillSave.getId()); - goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode()); - emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment); - } + EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment(); + goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode); + goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode()); + goodsPicAttachment.setFileUrl(emisWaybillSave.getGoodsPics()); + goodsPicAttachment.setWaybillId(emisWaybillSave.getId()); + goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode()); + emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment); } // 占用进仓单号