修改了角色状态
This commit is contained in:
parent
956efcd15d
commit
4b5be296a8
@ -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);
|
||||
|
@ -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<ForestRanger> allByRangerCountyCode = forestRangerDao.findAllsByRangerCountyCode(countyCode);
|
||||
if(allByRangerCountyCode == null || allByRangerCountyCode.size() == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user