md
This commit is contained in:
parent
38e177ebad
commit
de40d5c90c
@ -170,10 +170,13 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
|
|||||||
if(emisWaybill==null){
|
if(emisWaybill==null){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
WaybillOrder waybillOrder = new WaybillOrder();
|
||||||
|
|
||||||
|
// 忽略复制过程中出现的错误
|
||||||
|
CopyOptions options = CopyOptions.create().setIgnoreError(true);
|
||||||
|
|
||||||
// 基础信息
|
// 基础信息
|
||||||
WaybillOrder waybillOrder = new WaybillOrder();
|
BeanUtil.copyProperties(emisWaybill,waybillOrder,options);
|
||||||
waybillOrder.setBillCode(billCode);
|
|
||||||
|
|
||||||
// 收件人
|
// 收件人
|
||||||
Reciever reciever = new Reciever();
|
Reciever reciever = new Reciever();
|
||||||
@ -202,9 +205,7 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
|
|||||||
sender.setCompany(emisWaybill.getSendCompany());
|
sender.setCompany(emisWaybill.getSendCompany());
|
||||||
waybillOrder.setSender(sender);
|
waybillOrder.setSender(sender);
|
||||||
|
|
||||||
// 忽略复制过程中出现的错误
|
|
||||||
CopyOptions options = CopyOptions.create()
|
|
||||||
.setIgnoreError(true);
|
|
||||||
|
|
||||||
// 收费项 // 查询收费项
|
// 收费项 // 查询收费项
|
||||||
List<FeeItem> feeItems = new ArrayList<>();
|
List<FeeItem> feeItems = new ArrayList<>();
|
||||||
@ -213,7 +214,7 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
|
|||||||
List<EmisWaybillFeeitem> listFeeItem=emisWaybillFeeitemMapper.selectEmisWaybillFeeitemList(queryFeeitem);
|
List<EmisWaybillFeeitem> listFeeItem=emisWaybillFeeitemMapper.selectEmisWaybillFeeitemList(queryFeeitem);
|
||||||
for (EmisWaybillFeeitem feeItem:listFeeItem) {
|
for (EmisWaybillFeeitem feeItem:listFeeItem) {
|
||||||
FeeItem item = new FeeItem();
|
FeeItem item = new FeeItem();
|
||||||
BeanUtil.copyProperties(item,feeItem,options);
|
BeanUtil.copyProperties(feeItem,item,options);
|
||||||
feeItems.add(item);
|
feeItems.add(item);
|
||||||
}
|
}
|
||||||
waybillOrder.setFeeItems(feeItems);
|
waybillOrder.setFeeItems(feeItems);
|
||||||
@ -226,7 +227,7 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
|
|||||||
List<EmisWaybillCargo> listCargo=emisWaybillCargoMapper.selectEmisWaybillCargoList(queryCargo);
|
List<EmisWaybillCargo> listCargo=emisWaybillCargoMapper.selectEmisWaybillCargoList(queryCargo);
|
||||||
for (EmisWaybillCargo cargoItem:listCargo) {
|
for (EmisWaybillCargo cargoItem:listCargo) {
|
||||||
Cargo item = new Cargo();
|
Cargo item = new Cargo();
|
||||||
BeanUtil.copyProperties(item,cargoItem,options);
|
BeanUtil.copyProperties(cargoItem,item,options);
|
||||||
cargoList.add(item);
|
cargoList.add(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,7 +240,7 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
|
|||||||
List<EmisWaybillAttachment> listAttachment=emisWaybillAttachmentMapper.selectEmisWaybillAttachmentList(queryAttachment);
|
List<EmisWaybillAttachment> listAttachment=emisWaybillAttachmentMapper.selectEmisWaybillAttachmentList(queryAttachment);
|
||||||
for (EmisWaybillAttachment attachmentItem:listAttachment) {
|
for (EmisWaybillAttachment attachmentItem:listAttachment) {
|
||||||
Attachment item = new Attachment();
|
Attachment item = new Attachment();
|
||||||
BeanUtil.copyProperties(item,attachmentItem,options);
|
BeanUtil.copyProperties(attachmentItem,item,options);
|
||||||
attachmentList.add(item);
|
attachmentList.add(item);
|
||||||
}
|
}
|
||||||
waybillOrder.setAttachmentList(attachmentList);
|
waybillOrder.setAttachmentList(attachmentList);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user