|
|
|
@ -22,7 +22,6 @@ import com.logpm.warehouse.feign.IWarehouseWaybillClient;
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.constant.printTemplate.PrintTemplateStatusConstant; |
|
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
|
import org.springblade.common.utils.QRCodeUtil; |
|
|
|
|
import org.springblade.common.utils.TemplateUtil; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
@ -151,32 +150,29 @@ public class TrunklineAdvanceDetailServiceImpl extends BaseServiceImpl<Trunkline
|
|
|
|
|
String thirdPackName = advanceDetailEntity.getThirdPackName(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WarehouseWaybillEntity waybillEntity = warehouseWaybillClient.findByWaybillId(waybillId); |
|
|
|
|
if(Objects.isNull(waybillEntity)){ |
|
|
|
|
log.warn("运单信息不存在 waybillId={}",waybillId); |
|
|
|
|
throw new CustomerException(405,"运单信息不存在"); |
|
|
|
|
if(!Objects.isNull(waybillId)){ |
|
|
|
|
WarehouseWaybillEntity waybillEntity = warehouseWaybillClient.findByWaybillId(waybillId); |
|
|
|
|
if(!Objects.isNull(waybillEntity)){ |
|
|
|
|
vo.setShipperName(waybillEntity.getShipper()); |
|
|
|
|
vo.setShipperAddress(waybillEntity.getShipperAddress()); |
|
|
|
|
vo.setMallName(waybillEntity.getConsignee()); |
|
|
|
|
vo.setWaybillsNum(waybillEntity.getTotalCount()+""); |
|
|
|
|
vo.setObjective(waybillEntity.getDestinationWarehouseName()); |
|
|
|
|
vo.setDepartureStation(waybillEntity.getDepartureWarehouseName()); |
|
|
|
|
vo.setWaybillNumber(waybillEntity.getWaybillNo()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
String shipper = waybillEntity.getShipper(); |
|
|
|
|
String shipperAddress = waybillEntity.getShipperAddress(); |
|
|
|
|
String consignee = waybillEntity.getConsignee(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vo.setOrderCode(orderCode); |
|
|
|
|
vo.setShipperName(shipper); |
|
|
|
|
vo.setShipperAddress(shipperAddress); |
|
|
|
|
vo.setMallName(consignee); |
|
|
|
|
vo.setCustomerName(advanceEntity.getCustomerName()); |
|
|
|
|
vo.setCustomerTelephone(advanceEntity.getCustomerPhone()); |
|
|
|
|
vo.setCustomerAddress(advanceEntity.getCustomerAddress()); |
|
|
|
|
vo.setMaterialName(advanceDetailEntity.getMaterialName()); |
|
|
|
|
vo.setCategory(firstPackName+"/"+secondPackName+"/"+thirdPackName); |
|
|
|
|
vo.setWaybillsNum(waybillEntity.getTotalCount()+""); |
|
|
|
|
vo.setObjective(waybillEntity.getDestinationWarehouseName()); |
|
|
|
|
vo.setDepartureStation(waybillEntity.getDepartureWarehouseName()); |
|
|
|
|
vo.setDealerCode(advanceEntity.getDealerCode()); |
|
|
|
|
vo.setDealerName(advanceEntity.getDealerName()); |
|
|
|
|
vo.setQrCode(orderPackageCode); |
|
|
|
|
vo.setWaybillNumber(waybillEntity.getWaybillNo()); |
|
|
|
|
|
|
|
|
|
vo.setTotalNumber(advanceEntity.getTotalNum()+""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|