Commit 1be452c4 by zhoupeng

提交导入组织架构openapi接口

parent a81ba901
......@@ -49,8 +49,8 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService {
}
List<OrgDTO> orgDTOList = this.getRemoteOrgCdpList();
if(!CollectionUtils.isEmpty(orgDTOList)){
// 组织机构存缓存(1天)
redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(orgDTOList),86400L);
// 组织机构存缓存(5分钟)
redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(orgDTOList),300L);
}
return true;
}
......@@ -64,8 +64,8 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService {
}else{
organizationRedisDTOS = this.getRemoteOrgCdpList();
if(!CollectionUtils.isEmpty(organizationRedisDTOS)){
// 组织机构存缓存(1天)
redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(organizationRedisDTOS),86400L);
// 组织机构存缓存(5分钟)
redisService.setValue(RedisConstant.DEPARTMENT_ORGANIZATION, JSON.toJSONString(organizationRedisDTOS),300L);
}
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