md
This commit is contained in:
parent
6ab9ba84d8
commit
a31237c91e
@ -2717,28 +2717,28 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
}
|
||||
|
||||
// 保存货物图片
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getGoodsPics())){
|
||||
if(CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
||||
List<EmisWaybillAttachment> attachmentList = new ArrayList<EmisWaybillAttachment>();
|
||||
EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
||||
goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode);
|
||||
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
||||
goodsPicAttachment.setFileUrl(emisWaybillSave.getGoodsPics());
|
||||
attachmentList.add(goodsPicAttachment);
|
||||
emisWaybillSave.setAttachmentList(attachmentList);
|
||||
}
|
||||
}
|
||||
// if(!StringUtils.isEmpty(emisWaybillSave.getGoodsPics())){
|
||||
// if(CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
||||
// List<EmisWaybillAttachment> attachmentList = new ArrayList<EmisWaybillAttachment>();
|
||||
// EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
||||
// goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode);
|
||||
// goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
||||
// goodsPicAttachment.setFileUrl(emisWaybillSave.getGoodsPics());
|
||||
// attachmentList.add(goodsPicAttachment);
|
||||
// emisWaybillSave.setAttachmentList(attachmentList);
|
||||
// }
|
||||
// }
|
||||
|
||||
// 插入附件信息
|
||||
if(!CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
||||
// 商品附件图片插入到附件
|
||||
List<EmisWaybillAttachment> attachmentList=emisWaybillSave.getAttachmentList();
|
||||
for (EmisWaybillAttachment attachmentItem:attachmentList) {
|
||||
attachmentItem.setWaybillId(emisWaybillSave.getId());
|
||||
attachmentItem.setBillCode(emisWaybillSave.getBillCode());
|
||||
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(attachmentItem);
|
||||
}
|
||||
}
|
||||
// if(!CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
||||
// // 商品附件图片插入到附件
|
||||
// List<EmisWaybillAttachment> attachmentList=emisWaybillSave.getAttachmentList();
|
||||
// for (EmisWaybillAttachment attachmentItem:attachmentList) {
|
||||
// attachmentItem.setWaybillId(emisWaybillSave.getId());
|
||||
// attachmentItem.setBillCode(emisWaybillSave.getBillCode());
|
||||
// emisWaybillAttachmentMapper.insertEmisWaybillAttachment(attachmentItem);
|
||||
// }
|
||||
// }
|
||||
|
||||
// 通知网点有新的订单
|
||||
// 用户新下单
|
||||
|
||||
Loading…
Reference in New Issue
Block a user