From 529ad9dd8d1876b57e852bc45b602ba3ccc8df2a Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 10 Apr 2024 17:19:08 +0800 Subject: [PATCH] 公告-首页公告调整 --- src/main/java/cc/mrbird/febs/mall/controller/AdminMallOrderController.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/AdminMallOrderController.java b/src/main/java/cc/mrbird/febs/mall/controller/AdminMallOrderController.java index 8090049..7973074 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/AdminMallOrderController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/AdminMallOrderController.java @@ -676,4 +676,43 @@ return new FebsResponse().success().data(data); } + /** + * 发票列表-订单子表 + */ + @GetMapping(value = "/invoiceItemList") + public FebsResponse invoiceItemList() { + return new FebsResponse().success().data(mallInvoiceService.invoiceItemList()); + } + + /** + * 发票列表-上传发票 + */ + @PostMapping("addInvoiceUrl") + @ControllerEndpoint(operation = " 发票列表-上传发票", exceptionMessage = "操作失败") + public FebsResponse addInvoiceUrl(@Valid MallInvoice mallInvoice) { + return mallInvoiceService.addInvoiceUrl(mallInvoice); + } + + /** + * 发票列表-更新抬头 + * @param id + * @return + */ + @GetMapping("updateInvoiceDetail/{id}") + @ControllerEndpoint(operation = "发票列表-更新抬头", exceptionMessage = "操作失败") + public FebsResponse updateInvoiceDetail(@NotNull(message = "{required}") @PathVariable Long id) { + return mallInvoiceService.updateInvoiceDetail(id); + } + + /** + * 发票列表-更新订单状态 + * @param id + * @return + */ + @GetMapping("updateOrderDetail/{id}") + @ControllerEndpoint(operation = "发票列表-更新订单状态", exceptionMessage = "操作失败") + public FebsResponse updateOrderDetail(@NotNull(message = "{required}") @PathVariable Long id) { + return mallInvoiceService.updateOrderDetail(id); + } + } -- Gitblit v1.9.1