diff --git a/ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/utils/SecurityUtils.java b/ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/utils/SecurityUtils.java index 34f0dda..5425749 100644 --- a/ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/utils/SecurityUtils.java +++ b/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密码 * * @param password 密码