md
This commit is contained in:
parent
50eb097336
commit
fb18d972d6
@ -668,7 +668,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
emisWaybillSave.setCustomsClear(customsClear);
|
emisWaybillSave.setCustomsClear(customsClear);
|
||||||
|
|
||||||
// "发送寄件/签收短信不正确"
|
// "发送寄件/签收短信不正确"
|
||||||
emisWaybillSave.setBlMessage("1");
|
emisWaybillSave.setBlMessage("0");
|
||||||
|
emisWaybillSave.setBlAcceptMessage("0");
|
||||||
|
|
||||||
|
|
||||||
// 计算目的地
|
// 计算目的地
|
||||||
@ -3045,28 +3046,28 @@ 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);
|
||||||
|
//
|
||||||
EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
// EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
||||||
goodsPicAttachment.setWaybillId(emisWaybillSave.getId());
|
// goodsPicAttachment.setWaybillId(emisWaybillSave.getId());
|
||||||
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());
|
||||||
|
//
|
||||||
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment);
|
// emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment);
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 插入其他附件信息
|
// 插入其他附件信息
|
||||||
if(!CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
// if(!CollectionUtil.isEmpty(emisWaybillSave.getAttachmentList() )){
|
||||||
List<EmisWaybillAttachment> attachmentList=emisWaybillSave.getAttachmentList();
|
// List<EmisWaybillAttachment> attachmentList=emisWaybillSave.getAttachmentList();
|
||||||
for (EmisWaybillAttachment attachmentItem:attachmentList) {
|
// for (EmisWaybillAttachment attachmentItem:attachmentList) {
|
||||||
attachmentItem.setWaybillId(emisWaybillSave.getId());
|
// attachmentItem.setWaybillId(emisWaybillSave.getId());
|
||||||
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(attachmentItem);
|
// emisWaybillAttachmentMapper.insertEmisWaybillAttachment(attachmentItem);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3558,8 +3559,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
public void calcVolumeWeight(EmisWaybill emisWaybill) throws EmisBizError {
|
public void calcVolumeWeight(EmisWaybill emisWaybill) throws EmisBizError {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
StringUtils.isEmpty(emisWaybill.getProductType())
|
( StringUtils.isEmpty(emisWaybill.getProductType()) && StringUtils.isEmpty(emisWaybill.getTransLineType()) )
|
||||||
|| emisWaybill.getTotalVolume() == null
|
|| emisWaybill.getTotalVolume() == null
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -3572,11 +3573,16 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
double totalVolume=emisWaybill.getTotalVolume().doubleValue();
|
double totalVolume=emisWaybill.getTotalVolume().doubleValue();
|
||||||
|
|
||||||
// 获取产品信息
|
EmisTransLine emisTransLine=null;
|
||||||
EmisTransProduct emisTransProduct = getTransProductByCode(emisWaybill.getProductType());
|
if(StringUtils.isEmpty(emisWaybill.getTransLineType())){
|
||||||
|
// 获取产品信息
|
||||||
|
EmisTransProduct emisTransProduct = getTransProductByCode(emisWaybill.getProductType());
|
||||||
|
// 获取泡重比,计算体积重量
|
||||||
|
emisTransLine= getTransLineByCode(emisTransProduct.getTransLineCode());
|
||||||
|
|
||||||
// 获取泡重比,计算体积重量
|
}else{
|
||||||
EmisTransLine emisTransLine= getTransLineByCode(emisTransProduct.getTransLineCode());
|
emisTransLine= getTransLineByCode(emisWaybill.getTransLineType());
|
||||||
|
}
|
||||||
|
|
||||||
double volumeWeight=0.0D;
|
double volumeWeight=0.0D;
|
||||||
if(!StringUtils.isEmpty(emisTransLine.getMeterRate())) {
|
if(!StringUtils.isEmpty(emisTransLine.getMeterRate())) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user