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){