yeguodong 4 days ago
parent
commit
77d3589b6c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/cn/hnthyy/thmz/controller/mz/RoleController.java

+ 2 - 2
src/main/java/cn/hnthyy/thmz/controller/mz/RoleController.java

@@ -92,8 +92,8 @@ public class RoleController {
         }
         List<UserRoleRelation> userRoleRelations = userRoleRelationService.queryByUserId(user.getId());
         if(CollUtil.isNotEmpty(userRoleRelations)){
-            //10 为 门诊医生角色id
-            if (userRoleRelations.stream().anyMatch(o -> o.getRoleId() != null && o.getRoleId() == 10)) {
+            //3 为 门诊医生角色id
+            if (userRoleRelations.stream().anyMatch(o -> o.getRoleId() != null && o.getRoleId() == 3)) {
                     return R.ok().put("data",1);
             }
         }