Commit 7a6a47a7 by 墨竹

feat:标签同步修改

parent 2754412d
...@@ -42,6 +42,7 @@ import org.springframework.stereotype.Service; ...@@ -42,6 +42,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static org.slf4j.LoggerFactory.getLogger; import static org.slf4j.LoggerFactory.getLogger;
...@@ -101,8 +102,6 @@ public class QywxTagApiServiceImpl implements QywxTagApiService { ...@@ -101,8 +102,6 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
for (QywxTagGroupDTO groupDTO : tagGroup) { for (QywxTagGroupDTO groupDTO : tagGroup) {
qywxTagService.saveQywxTagByQywxGroupKey(wxEnterpriseId, groupDTO); qywxTagService.saveQywxTagByQywxGroupKey(wxEnterpriseId, groupDTO);
} }
} }
@Override @Override
...@@ -551,6 +550,11 @@ public class QywxTagApiServiceImpl implements QywxTagApiService { ...@@ -551,6 +550,11 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
logger.info("不需要操作:{},{}", wxUserId, externalUserId); logger.info("不需要操作:{},{}", wxUserId, externalUserId);
return; return;
} }
try {
TimeUnit.MILLISECONDS.sleep(100L);
} catch (InterruptedException e) {
logger.error("同步标签报错:{}",e.getMessage());
}
QywxResponseDTO responseDTO = qywxUserApiService.markTag(wxEnterprise.getCorpid(), config.getWxSuiteid(), wxUserId, externalUserId, needSetTags, needDelTags); QywxResponseDTO responseDTO = qywxUserApiService.markTag(wxEnterprise.getCorpid(), config.getWxSuiteid(), wxUserId, externalUserId, needSetTags, needDelTags);
logger.info("操作返回:{}", JSONObject.toJSONString(responseDTO)); logger.info("操作返回:{}", JSONObject.toJSONString(responseDTO));
if (responseDTO.getErrcode() != 0) { if (responseDTO.getErrcode() != 0) {
...@@ -560,7 +564,6 @@ public class QywxTagApiServiceImpl implements QywxTagApiService { ...@@ -560,7 +564,6 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
return; return;
} }
}); });
return resp; return resp;
} }
......
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