|
@@ -385,7 +385,7 @@ public class MonitoringSystemReporting {
|
|
|
dispatch.setBusinessTypeCode(orderInfo.getBusinessTypeCode());
|
|
|
dispatch.setDespatchActualDateTime(f.format(orderInfo.getDeliveryTime()));
|
|
|
dispatch.setGoodsReceiptDateTime(f.format(orderInfo.getReceivingTime()));
|
|
|
- dispatch.setRemark("备注");
|
|
|
+ dispatch.setRemark(orderInfo.getRemark() != null ? orderInfo.getRemark() : "");
|
|
|
DecimalFormat df = new DecimalFormat("0.000");
|
|
|
dispatch.setTotalMonetaryAmount(df.format(orderInfo.getActualFreight()));
|
|
|
setConsignorInfo(dispatch, orderInfo);
|
|
@@ -432,8 +432,9 @@ public class MonitoringSystemReporting {
|
|
|
public static void setInsuranceInformation(Dispatch dispatch, OrderInfo orderInfo) {
|
|
|
List<InsuranceInformation> insuranceInformations = new ArrayList<>();
|
|
|
InsuranceInformation insuranceInformation = new InsuranceInformation();
|
|
|
- insuranceInformation.setPolicyNumber(orderInfo.getPolicyNo());
|
|
|
- insuranceInformation.setInsuranceCompanyCode(orderInfo.getInsuranceCompanyCode());
|
|
|
+ //todo
|
|
|
+ insuranceInformation.setPolicyNumber(orderInfo.getPolicyNo() != null ? orderInfo.getPolicyNo() : "none");
|
|
|
+ insuranceInformation.setInsuranceCompanyCode(orderInfo.getInsuranceCompanyCode() != null ? orderInfo.getInsuranceCompanyCode() : "none");
|
|
|
insuranceInformations.add(insuranceInformation);
|
|
|
dispatch.setInsuranceInformation(insuranceInformations);
|
|
|
}
|
|
@@ -475,8 +476,9 @@ public class MonitoringSystemReporting {
|
|
|
goodsInfo1.setDescriptionOfGoods(orderInfo.getGoodsName());
|
|
|
goodsInfo1.setCargoTypeClassificationCode(orderInfo.getGoodsTypeKey());
|
|
|
goodsInfo1.setGoodsItemGrossWeight(df.format(orderInfo.getGrossWeight() * 1000));
|
|
|
- goodsInfo1.setCube(df1.format(orderInfo.getVolume()));
|
|
|
- goodsInfo1.setTotalNumberOfPackages(String.valueOf(orderInfo.getPackageNumber()));
|
|
|
+ //todo 体积,件数
|
|
|
+ goodsInfo1.setCube(df1.format(orderInfo.getVolume() != null ? orderInfo.getVolume() : "0"));
|
|
|
+ goodsInfo1.setTotalNumberOfPackages(String.valueOf(orderInfo.getPackageNumber() != null ? orderInfo.getPackageNumber() : "0"));
|
|
|
goodsInfos.add(goodsInfo1);
|
|
|
vehicleInfo.setGoodsInfo(goodsInfos);
|
|
|
vehicleInfos.add(vehicleInfo);
|