|
|
@@ -77,15 +77,14 @@ public class ManagementWaybillOrderController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/export", method = RequestMethod.POST)
|
|
|
- public HttpResult exportWaybillOrder(@Validated @RequestBody ManagementWaybillOrderQuery query) {
|
|
|
+ public void exportWaybillOrder(@Validated @RequestBody ManagementWaybillOrderQuery query) {
|
|
|
log.error("运营管理端-运单-导出 query :{}", JSONObject.toJSONString(query));
|
|
|
HttpServletResponse response = RequestHolder.getResponse();
|
|
|
List<ManagementWaybillOrderExcelVO> list = managementWaybillOrderService.exportWaybillOrder(query);
|
|
|
if (CollectionUtils.isEmpty(list)){
|
|
|
throw new CustomPromptException(HttpStatus.SUCCESS_CODE,"暂无数据,请确认");
|
|
|
}
|
|
|
- ExcelUtil.download(response, ManagementWaybillOrderExcelVO.class, list);
|
|
|
- return null;
|
|
|
+ ExcelUtil.downData(response, ManagementWaybillOrderExcelVO.class, list);
|
|
|
}
|
|
|
|
|
|
|