Commit 184c2f85 by 徐高华

同步通讯录

parent 76f0d348
......@@ -360,7 +360,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
String key = LOCK_KEY + wxEnterpriseId;
Object cache = RedisUtil.getCache(key);
if (null == cache) {
RedisUtil.setCache(key, taskId, 5L, TimeUnit.DAYS);
RedisUtil.setCache(key, taskId, 3L, TimeUnit.HOURS);
return taskId;
}
return null;
......@@ -410,7 +410,10 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
return syncCheckDTO;
}
TabHaobanSyncTask syncTask = syncTaskService.getSyncTask(taskId);
if(Arrays.asList(4,5,6).contains(syncTask.getStatusFlag())) {
RedisUtil.delCache(sKey);
return syncCheckDTO;
}
/*int status = syncTask.getStatusFlag() ;
if(status != 4) {
int count = this.preDealService.countByTaskId(taskId) ;
......
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