|
|
@@ -125,15 +125,15 @@ public class KwfDriverController {
|
|
|
* @date 2023/07/11
|
|
|
**/
|
|
|
@PostMapping(value = "/export", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- public void export(@RequestBody Map<String, Object> params, HttpServletResponse response) {
|
|
|
+ public HttpResult export(@RequestBody Map<String, Object> params, HttpServletResponse response) {
|
|
|
/**分页数据**/
|
|
|
List<KwfDriverVo> drivers = driverService.findPage(params);
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(drivers)) {
|
|
|
ExcelUtil.downData(response, KwfDriverVo.class, drivers);
|
|
|
- //return null;
|
|
|
+ return HttpResult.ok();
|
|
|
}
|
|
|
- //return HttpResult.error("无数据!");
|
|
|
+ return HttpResult.error("无数据!");
|
|
|
}
|
|
|
|
|
|
/**
|