mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 13:22:07 +08:00
1、access_token多级缓存同时失效下的刷新处理;
2、loginUser整体用utf-8编码处理中文乱码; 3、角色用sort排序;
This commit is contained in:
+6
-2
@@ -21,6 +21,11 @@ public class OrganContextHolder {
|
||||
*/
|
||||
private static final ThreadLocal<Boolean> IGNORE = new TransmittableThreadLocal<>();
|
||||
|
||||
/**
|
||||
* 上下文获取不到organid异常提示
|
||||
*/
|
||||
public static final String ORGANID_NOT_EXIST_EXCEPTION = "OrganContextHolder 不存在组织编号!";
|
||||
|
||||
/**
|
||||
* 获得组织编号
|
||||
*
|
||||
@@ -48,8 +53,7 @@ public class OrganContextHolder {
|
||||
public static Long getRequiredOrganId() {
|
||||
Long organId = getOrganId();
|
||||
if (organId == null) {
|
||||
throw new NullPointerException("OrganContextHolder 不存在组织编号!可参考文档:"
|
||||
+ DocumentEnum.ORGAN.getUrl());
|
||||
throw new NullPointerException(ORGANID_NOT_EXIST_EXCEPTION);
|
||||
}
|
||||
return organId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user