Commit 50cf0193 by 徐高华

同步通讯录优化

parent 24881d29
...@@ -937,6 +937,8 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ ...@@ -937,6 +937,8 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
this.unlockTask(wxEnterpriseId) ; this.unlockTask(wxEnterpriseId) ;
this.cleanDiffrence(wxEnterpriseId, taskId); this.cleanDiffrence(wxEnterpriseId, taskId);
logger.info("同步通讯录完成"); logger.info("同步通讯录完成");
String conectkey = "get_follow_user_list:"+wxEnterpriseId ;
RedisUtil.delCache(conectkey) ;
RedisUtil.unlock(key); RedisUtil.unlock(key);
} }
return true ; return true ;
......
...@@ -393,7 +393,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -393,7 +393,7 @@ public class StaffApiServiceImpl implements StaffApiService {
wxUserIdsList = qywxUserApiService.listCorpExternalUser(qwDTO.getThirdCorpid(), config.getWxSuiteid()); wxUserIdsList = qywxUserApiService.listCorpExternalUser(qwDTO.getThirdCorpid(), config.getWxSuiteid());
} }
if(isSyncDepart) { if(isSyncDepart) {
RedisUtil.setCache(key,wxUserIdsList); RedisUtil.setCache(key,wxUserIdsList,60*60L);
} }
} }
if (CollUtil.isNotEmpty(wxUserIdsList) && wxUserIdsList.contains(userId)) { if (CollUtil.isNotEmpty(wxUserIdsList) && wxUserIdsList.contains(userId)) {
......
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