Commit 31559001 by 章家宝

feat:新增车辆档案导出(含发拍信息)

1 parent 72648680
package com.glsx.usedcar.web.rest.vehicle; package com.glsx.usedcar.web.rest.vehicle;
import com.glsx.usedcar.export.ExcelExporter; import com.glsx.usedcar.export.*;
import com.glsx.usedcar.export.VehicleBean;
import com.glsx.usedcar.module.analysis.domain.NameCount; import com.glsx.usedcar.module.analysis.domain.NameCount;
import com.glsx.usedcar.module.auction.entity.AppraisePrice; import com.glsx.usedcar.module.auction.entity.AppraisePrice;
import com.glsx.usedcar.module.auction.entity.AppraisePrice_; import com.glsx.usedcar.module.auction.entity.AppraisePrice_;
...@@ -295,7 +294,20 @@ public class VehicleController { ...@@ -295,7 +294,20 @@ public class VehicleController {
List<VehicleBean> vehicleBeans = vehicles.stream().map(VehicleBean::new).toList(); List<VehicleBean> vehicleBeans = vehicles.stream().map(VehicleBean::new).toList();
ExcelExporter.exportExcel(response, "评估定价车辆列表", "车辆列表", VehicleBean.class, vehicleBeans); ExcelExporter.exportExcel(response, "评估定价车辆列表", "车辆列表", VehicleBean.class, vehicleBeans);
} }
/**
* 车辆列表导出(含发拍信息)
*
* @param pagination
* @param response
* @throws IOException
*/
@PostMapping("exportVehicleWithVr")
public void exportVehicleWithVr(@RequestBody Pagination<Vehicle> pagination, HttpServletResponse response) throws IOException {
pagination.setLimit(9999);
List<Vehicle> vehicles = pageVehicle(pagination).getContent();
List<VehicleBeanWithVr> vehicleBeans = vehicles.stream().map(VehicleBeanWithVr::new).toList();
ExcelExporter.exportExcel(response, "车辆列表(含发拍信息)", "车辆列表", VehicleBean.class, vehicleBeans);
}
/** /**
* 系统自动加价 * 系统自动加价
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!