Commit e221d409 by 刘宇峰

新增车辆-车型管理-导出车辆

1 parent 8d151b69
...@@ -60,7 +60,7 @@ public class TrialDriveVehicleExport { ...@@ -60,7 +60,7 @@ public class TrialDriveVehicleExport {
* 服役类型:0未上牌,1已上牌 * 服役类型:0未上牌,1已上牌
*/ */
@ExcelProperty(value = "服役类型", index = 8) @ExcelProperty(value = "服役类型", index = 8)
private Integer serveType; private String serveType;
/** /**
* 设备号 * 设备号
*/ */
......
...@@ -415,14 +415,22 @@ public class VehicleService { ...@@ -415,14 +415,22 @@ public class VehicleService {
} }
/** /**
* 导出时间车辆数据 * 导出试驾车辆数据
* *
* @param search * @param search
* @return * @return
*/ */
public List<TrialDriveVehicleExport> exportDriveVehicle(VehicleManageSearch search) { public List<TrialDriveVehicleExport> exportDriveVehicle(VehicleManageSearch search) {
List<TrialDriveVehicleExport> vehicleExportList = vehicleMapper.exportDriveVehicle(search); List<TrialDriveVehicleExport> list = vehicleMapper.exportDriveVehicle(search);
return vehicleExportList; list.forEach(tdve -> {
//0未上牌,1已上牌
if ("0".equals(tdve.getServeType())) {
tdve.setServeType("未上牌");
} else if ("1".equals(tdve.getServeType())) {
tdve.setServeType("已上牌");
}
});
return list;
} }
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!