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() // 所有原有发票