修改了角色状态

This commit is contained in:
DESKTOP-G8BCEP0\HP 2021-07-26 11:10:37 +08:00
parent 956efcd15d
commit 4b5be296a8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class FireAndRangerController {
* @param token * @param token
* @return * @return
*/ */
@PreAuthorize("hasAnyAuthority('auth_general_user')") @PreAuthorize("hasAnyAuthority('auth_rangers')")
@GetMapping("/selectFireInformation") @GetMapping("/selectFireInformation")
public String selectFireInformation(@RequestHeader(value="Authorization") String token){ public String selectFireInformation(@RequestHeader(value="Authorization") String token){
return fireAndRangerService.selectFireInformation(token); return fireAndRangerService.selectFireInformation(token);

View File

@ -55,7 +55,7 @@ public class ForestRangerServiceImpl implements ForestRangerService {
if(all == null || all.size() == 0){ if(all == null || all.size() == 0){
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,"暂时还没该省护林员的信息",locale); return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,"暂时还没该省护林员的信息",locale);
} }
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,all,locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS,all,locale);
}else { }else {
List<ForestRanger> allByRangerCountyCode = forestRangerDao.findAllsByRangerCountyCode(countyCode); List<ForestRanger> allByRangerCountyCode = forestRangerDao.findAllsByRangerCountyCode(countyCode);
if(allByRangerCountyCode == null || allByRangerCountyCode.size() == 0){ if(allByRangerCountyCode == null || allByRangerCountyCode.size() == 0){