From d93bd8ef69cde0f284796f3d8e8fcff6c5bfd910 Mon Sep 17 00:00:00 2001 From: caojianbin <1910336823> Date: Thu, 4 Aug 2022 14:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=A8=A1=E5=9E=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/common/security/utils/SecurityUtils.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 密码