Commit 1be452c4 by zhoupeng

提交导入组织架构openapi接口

parent a81ba901
...@@ -49,8 +49,8 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService { ...@@ -49,8 +49,8 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService {
} }
List<OrgDTO> orgDTOList = this.getRemoteOrgCdpList(); List<OrgDTO> orgDTOList = this.getRemoteOrgCdpList();
if(!CollectionUtils.isEmpty(orgDTOList)){ if(!CollectionUtils.isEmpty(orgDTOList)){
// 组织机构存缓存(1天) // 组织机构存缓存(5分钟)
redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(orgDTOList),86400L); redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(orgDTOList),300L);
} }
return true; return true;
} }
...@@ -64,8 +64,8 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService { ...@@ -64,8 +64,8 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService {
}else{ }else{
organizationRedisDTOS = this.getRemoteOrgCdpList(); organizationRedisDTOS = this.getRemoteOrgCdpList();
if(!CollectionUtils.isEmpty(organizationRedisDTOS)){ if(!CollectionUtils.isEmpty(organizationRedisDTOS)){
// 组织机构存缓存(1天) // 组织机构存缓存(5分钟)
redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(organizationRedisDTOS),86400L); redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(organizationRedisDTOS),300L);
} }
return organizationRedisDTOS; return organizationRedisDTOS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment