Browse Source

设备模型修改9

master
caojianbin 2 years ago
parent
commit
d93bd8ef69
  1. 23
      ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/utils/SecurityUtils.java

23
ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/utils/SecurityUtils.java

@ -112,6 +112,29 @@ public class SecurityUtils
} }
/** /**
* yisai是否为厂商
*
* @param firmFlag
* @return 结果
*/
public static boolean isFirm(String firmFlag)
{
return firmFlag != null && "1".equals(firmFlag);
}
/**
* yisai是否为代理商
*
* @param firmFlag
* @return 结果
*/
public static boolean isAgent(String firmFlag)
{
return firmFlag != null && "2".equals(firmFlag);
}
/**
* 生成BCryptPasswordEncoder密码 * 生成BCryptPasswordEncoder密码
* *
* @param password 密码 * @param password 密码

Loading…
Cancel
Save