字典类型加上组织字段

This commit is contained in:
秦鸿展
2026-05-14 14:18:51 +08:00
parent c7c536782f
commit f8c6be9db8
11 changed files with 289 additions and 35 deletions
@@ -72,4 +72,13 @@ public class DictUtils
{
return Constants.SYS_DICT_KEY + configKey;
}
/**
* 字典缓存键:同一 dict_type 在不同组织下可并存,需带上组织维度(null 视为 0 平台)
*/
public static String dictTypeOrgCacheKey(String dictType, Long organizationId)
{
long oid = organizationId == null ? 0L : organizationId.longValue();
return dictType + "@" + oid;
}
}