Commit 67c37821 by 章家宝

feat:车型名称导出

1 parent 37abaebe
...@@ -137,7 +137,8 @@ public class InspectionReportExportBean implements Serializable { ...@@ -137,7 +137,8 @@ public class InspectionReportExportBean implements Serializable {
// 基础信息 // 基础信息
if (vehicle.getBaseInfo() != null) { if (vehicle.getBaseInfo() != null) {
this.sourceNo = vehicle.getBaseInfo().getSourceNo(); this.sourceNo = vehicle.getBaseInfo().getSourceNo();
this.carTypeName = vehicle.getBaseInfo().getCarTypeName(); String seriesName = vehicle.getBaseInfo().getCarSeriesName() == null ? "" : vehicle.getBaseInfo().getCarSeriesName();
this.carTypeName = seriesName + " " + vehicle.getBaseInfo().getCarTypeName();
this.vin = vehicle.getBaseInfo().getVin(); this.vin = vehicle.getBaseInfo().getVin();
this.licensePlate = vehicle.getBaseInfo().getLicensePlate(); this.licensePlate = vehicle.getBaseInfo().getLicensePlate();
} else { } else {
......
...@@ -185,7 +185,8 @@ public class InspectionWorkOrderExportBean implements Serializable { ...@@ -185,7 +185,8 @@ public class InspectionWorkOrderExportBean implements Serializable {
// 基础信息 // 基础信息
if (vehicle.getBaseInfo() != null) { if (vehicle.getBaseInfo() != null) {
this.sourceNo = vehicle.getBaseInfo().getSourceNo(); this.sourceNo = vehicle.getBaseInfo().getSourceNo();
this.carTypeName = vehicle.getBaseInfo().getCarSeriesName() + " " + vehicle.getBaseInfo().getCarTypeName(); String seriesName = vehicle.getBaseInfo().getCarSeriesName() == null ? "" : vehicle.getBaseInfo().getCarSeriesName();
this.carTypeName = seriesName + " " + vehicle.getBaseInfo().getCarTypeName();
this.vin = vehicle.getBaseInfo().getVin(); this.vin = vehicle.getBaseInfo().getVin();
this.licensePlate = vehicle.getBaseInfo().getLicensePlate(); this.licensePlate = vehicle.getBaseInfo().getLicensePlate();
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!