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");