添加导出结算单功能

This commit is contained in:
lifenlong
2021-08-13 18:16:13 +08:00
parent 7941b74efb
commit 7aa99497e5
8 changed files with 255 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
package cn.lili.controller.trade;
import cn.lili.common.context.ThreadContextHolder;
import cn.lili.common.enums.ResultUtil;
import cn.lili.common.vo.PageVO;
import cn.lili.common.vo.ResultMessage;
@@ -16,6 +17,8 @@ import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
/**
* 店铺端,结算单接口
*
@@ -69,4 +72,14 @@ public class BillStoreController {
billService.check(id);
return ResultUtil.success();
}
@ApiOperation(value = "下载结算单",produces="application/octet-stream")
@ApiImplicitParam(name = "id", value = "结算单ID", required = true, paramType = "path", dataType = "String")
@GetMapping(value = "/downLoad/{id}")
public void downLoadDeliverExcel(@PathVariable String id) {
HttpServletResponse response = ThreadContextHolder.getHttpResponse();
billService.download(response,id);
}
}

View File

@@ -150,8 +150,6 @@ public class OrderStoreController {
//下载订单批量发货Excel
this.orderService.getBatchDeliverList(response,logisticsName);
//return ResultUtil.success(ResultCode.SUCCESS);
}
@PostMapping(value = "/batchDeliver", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)