|
|
@ -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 密码 |
|
|
|