md
This commit is contained in:
parent
d218cc9a84
commit
c0780a1ae0
@ -1509,21 +1509,18 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 保存货物图片
|
// 保存货物图片
|
||||||
if(!StringUtils.isEmpty(emisWaybillSave.getGoodsPics())){
|
if(!StringUtils.isEmpty(emisWaybillSave.getGoodsPics())){
|
||||||
// 删除历史图片,重新插入图片
|
// 删除历史图片,重新插入图片
|
||||||
emisWaybillAttachmentMapper.deleteByBillCodeAndAttachType(emisWaybillSave.getBillCode(),WaybillAttachType.GOODS_PIC.typeCode);
|
emisWaybillAttachmentMapper.deleteByBillCodeAndAttachType(emisWaybillSave.getBillCode(),WaybillAttachType.GOODS_PIC.typeCode);
|
||||||
|
|
||||||
if(CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
||||||
EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode);
|
||||||
goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode);
|
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
||||||
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
goodsPicAttachment.setFileUrl(emisWaybillSave.getGoodsPics());
|
||||||
goodsPicAttachment.setFileUrl(emisWaybillSave.getGoodsPics());
|
goodsPicAttachment.setWaybillId(emisWaybillSave.getId());
|
||||||
goodsPicAttachment.setWaybillId(emisWaybillSave.getId());
|
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
||||||
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment);
|
||||||
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 占用进仓单号
|
// 占用进仓单号
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user