From 4b5be296a832be9325677629f215a46684330a06 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G8BCEP0\\HP" <2037158277@qq.com> Date: Mon, 26 Jul 2021 11:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/controller/FireAndRangerController.java | 2 +- .../java/com/xkrs/service/impl/ForestRangerServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xkrs/controller/FireAndRangerController.java b/src/main/java/com/xkrs/controller/FireAndRangerController.java index 9993b1d..34a51cb 100644 --- a/src/main/java/com/xkrs/controller/FireAndRangerController.java +++ b/src/main/java/com/xkrs/controller/FireAndRangerController.java @@ -39,7 +39,7 @@ public class FireAndRangerController { * @param token * @return */ - @PreAuthorize("hasAnyAuthority('auth_general_user')") + @PreAuthorize("hasAnyAuthority('auth_rangers')") @GetMapping("/selectFireInformation") public String selectFireInformation(@RequestHeader(value="Authorization") String token){ return fireAndRangerService.selectFireInformation(token); diff --git a/src/main/java/com/xkrs/service/impl/ForestRangerServiceImpl.java b/src/main/java/com/xkrs/service/impl/ForestRangerServiceImpl.java index 532a1ea..9e4dba0 100644 --- a/src/main/java/com/xkrs/service/impl/ForestRangerServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/ForestRangerServiceImpl.java @@ -55,7 +55,7 @@ public class ForestRangerServiceImpl implements ForestRangerService { if(all == null || all.size() == 0){ return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,"暂时还没该省护林员的信息",locale); } - return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,all,locale); + return outputEncapsulationObject(PromptMessageEnum.SUCCESS,all,locale); }else { List allByRangerCountyCode = forestRangerDao.findAllsByRangerCountyCode(countyCode); if(allByRangerCountyCode == null || allByRangerCountyCode.size() == 0){