From 95011e6d39258a1ac2703db3fc0498bdc46afe64 Mon Sep 17 00:00:00 2001 From: XinYi Song <2037158277@qq.com> Date: Tue, 21 Dec 2021 17:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=B8=82=E7=BA=A7?= =?UTF-8?q?=E6=88=96=E5=8C=BA=E5=8E=BF=E7=BA=A7=E6=9F=A5=E7=9C=8B=E5=85=A5?= =?UTF-8?q?=E9=A9=BB=E5=95=86=E5=AE=B6=E7=9A=84=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97=EF=BC=8C=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E4=BA=86=E5=B8=82=E7=BA=A7=EF=BC=8C=E5=8C=BA=E5=8E=BF=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/controller/MerchantSettlementController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xkrs/controller/MerchantSettlementController.java b/src/main/java/com/xkrs/controller/MerchantSettlementController.java index 6aa798f..9ac83fe 100644 --- a/src/main/java/com/xkrs/controller/MerchantSettlementController.java +++ b/src/main/java/com/xkrs/controller/MerchantSettlementController.java @@ -112,7 +112,8 @@ public class MerchantSettlementController { * @return */ @PostMapping("/selectAllBusiness") - public String selectAllBusiness(@RequestBody Map map){ + @PreAuthorize("hasAnyAuthority('auth_city','auth_county')") + public String selectAllBusiness(@RequestBody Map map,@RequestHeader(value="Authorization") String token){ String businessCity = (String) map.get("businessCity"); String businessCountry = (String) map.get("businessCountry"); String businessName = (String) map.get("businessName");