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); } // 占用进仓单号