zhongrj
2024-04-28 ebd41b7b2e44dc8b96f177d7bf88d2f5f997b75c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.springblade.common.utils;
 
import java.util.UUID;
 
public class RoleUtil {
 
 
    /**
     * 判断是否物业人员
     *
     * @return
     */
    public static boolean isProperty(String userRole) {
        if (userRole.contains("wygly") || userRole.contains("wyxmjl") || userRole.contains("wyfwry")) {
            return true;
        }
        return false;
    }
 
    /**
     * 判断是否网格人员
     *
     * @return
     */
    public static boolean isWgy(String userRole) {
        if (userRole.contains("wgy")) {
            return true;
        }
        return false;
    }
}