| | |
| | | orgMap.put(CmnConst.ORG_LEVEL_CODE_PARENT, fse.getString(CmnConst.ORG_LEVEL_CODE_PARENT)); |
| | | orgMap.put(CmnConst.ORG_LEVEL_UUID, fse.getString(CmnConst.ORG_LEVEL_UUID)); |
| | | orgMap.put(CmnConst.ORG_LEVEL_ALL, fse.getString(CmnConst.ORG_LEVEL_ALL)); |
| | | orgMap.put(CmnConst.ORG_LEVEL_TYPE, fse.getString(CmnConst.ORG_LEVEL_TYPE)); |
| | | orgMap.put("uuid", fse.getUUID()); |
| | | orgMap.put("parent_uuid", fse.getString("parent_uuid")); |
| | | orgMap.put("parent_type", fse.getString("parent_type")); |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取组织机构(公司、部门)根据uuid |
| | | * |
| | | * @param uuid |
| | | * @return |
| | | */ |
| | | public static Map<String, Object> getOrgCacheByUuid(String uuid) { |
| | | if (!StringUtils.isEmpty(uuid) && RedisUtil.exists(ORG_UUID_CACHE_KEY + uuid)) { |
| | | return (Map<String, Object>) RedisUtil.get(ORG_UUID_CACHE_KEY + uuid); |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取组织机构(公司、部门)根据org_level_code_parent |
| | | * |
| | | * @param org_level_code_parent |
| | | * @return |
| | | */ |
| | | public static List<FieldSetEntity> getOrgCache(String org_level_code_parent) { |
| | | if (!StringUtils.isEmpty((org_level_code_parent)) && RedisUtil.exists(ORG_CACHE_KEY + org_level_code_parent)) { |
| | | Collection<Object> values = RedisUtil.getHash(ORG_CACHE_KEY + org_level_code_parent).values(); |