From 22103e65ca8b484c5d7ee1062a55ab7d8f51101f Mon Sep 17 00:00:00 2001 From: dongxiaoke <1910333201@qq.com> Date: Tue, 13 Jun 2023 10:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E7=A8=8E=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/http/invoice/v1/InvoiceController.java | 6 +++--- .../java/com/jianshui/framework/config/SecurityConfig.java | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceController.java b/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceController.java index 246d78d..6b28076 100644 --- a/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceController.java +++ b/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceController.java @@ -324,7 +324,7 @@ public class InvoiceController { @ApiImplicitParams({ @ApiImplicitParam(name = "identity", value = "身份认证", dataType = "string", example = "1130", required = true), @ApiImplicitParam(name = "order", value = "请求体", required = true)}) - @PostMapping({"/api/invoice/v1/deprecate_query", "/api/invoice/v1/deprecate_query/{identity}", "/invoice/deleteInvoiceQuery"}) + @PostMapping({"/api/invoice/v1/deprecate_query", "/api/invoice/v1/deprecate_query/{identity}", "/invoice/deleteInvoiceQuery","/invoice/deprecate_query"}) public Object deprecateQueryInvoice(HttpServletRequest request, String identity) throws Exception { if (StringUtils.isEmpty(identity)) { return AjaxResult.error(ErrorCode.EMPTY_IDENTITY); @@ -468,7 +468,7 @@ public class InvoiceController { @ApiImplicitParams({ @ApiImplicitParam(name = "identity", value = "身份认证", dataType = "string", example = "1130", required = true), @ApiImplicitParam(name = "order", value = "请求体", required = true)}) - @PostMapping({"/api/invoice/v1/batch_print", "/api/invoice/v1/batch_print/{identity}"}) + @PostMapping({"/api/invoice/v1/batch_print", "/api/invoice/v1/batch_print/{identity}","/invoice/batch_print"}) public Object print(HttpServletRequest request, String identity) throws Exception { if (StringUtils.isEmpty(identity)) { return AjaxResult.error(ErrorCode.EMPTY_IDENTITY); @@ -511,7 +511,7 @@ public class InvoiceController { @ApiImplicitParams({ @ApiImplicitParam(name = "identity", value = "身份认证", dataType = "string", example = "1130", required = true), @ApiImplicitParam(name = "order", value = "请求体", required = true)}) - @PostMapping({"/api/invoice/v1/printer_list", "/api/invoice/v1/printer_list/{identity}"}) + @PostMapping({"/api/invoice/v1/printer_list", "/api/invoice/v1/printer_list/{identity}","/invoice/printer_list"}) public Object printer(HttpServletRequest request, String identity) throws Exception { if (StringUtils.isEmpty(identity)) { return AjaxResult.error(ErrorCode.EMPTY_IDENTITY); diff --git a/jianshui-framework/src/main/java/com/jianshui/framework/config/SecurityConfig.java b/jianshui-framework/src/main/java/com/jianshui/framework/config/SecurityConfig.java index e047448..ec987cf 100644 --- a/jianshui-framework/src/main/java/com/jianshui/framework/config/SecurityConfig.java +++ b/jianshui-framework/src/main/java/com/jianshui/framework/config/SecurityConfig.java @@ -113,6 +113,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { "/invoice/queryInvoice", "/invoice/queryInvoiceByOrderNo", "/invoice/redInvoiceDownload", + "/invoice/deprecate_query", + "/invoice/deleteInvoiceQuery", + "/invoice/batch_print", + "/invoice/printer_list", "/invoice/deleteInvoice" ) .permitAll() // 所有原有发票