|
|
@@ -127,17 +127,17 @@ public class KwfDriverController {
|
|
|
* @date 2023/07/11
|
|
|
**/
|
|
|
@PostMapping("/export")
|
|
|
- public HttpResult export(@RequestBody Map<String, Object> params) {
|
|
|
+ public void export(@RequestBody Map<String, Object> params) {
|
|
|
params.put("entId", LoginUserHolder.getEntId());
|
|
|
/**分页数据**/
|
|
|
List<KwfDriverVo> drivers = driverService.findPage(params);
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(drivers)) {
|
|
|
HttpServletResponse response = RequestHolder.getResponse();
|
|
|
- ExcelUtil.download(response, KwfDriverVo.class, drivers);
|
|
|
- return null;
|
|
|
+ ExcelUtil.downData(response, KwfDriverVo.class, drivers);
|
|
|
+ //return null;
|
|
|
}
|
|
|
- return HttpResult.error("无数据!");
|
|
|
+ //return HttpResult.error("无数据!");
|
|
|
}
|
|
|
|
|
|
/**
|