Commit 8bf65c2d by fudahua

会员标签同步-traceId

parent 727acdca
......@@ -825,6 +825,9 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
public void checkQywxSync(String params) {
List<TabHaobanWxEnterprise> wxEnterprises = wxEnterpriseService.listAll();
wxEnterprises.forEach(wxEnterprise -> {
ProviderLocalTag providerLocalTag = ProviderLocalTag.tag.get();
String traceId = providerLocalTag.traceId + "_" + wxEnterprise.getWxEnterpriseId();
providerLocalTag.traceId = traceId;
logger.info("企业:{}", wxEnterprise.getWxEnterpriseId());
try {
List<TabQywxTagRelation> tagRelations = qywxTagService.listAllQywxRelation(wxEnterprise.getWxEnterpriseId());
......@@ -845,8 +848,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
messageDTO.setWxEnterpriseId(wxEnterprise.getWxEnterpriseId());
messageDTO.setContentMap(map);
ProviderLocalTag providerLocalTag = ProviderLocalTag.tag.get();
String traceId = providerLocalTag.traceId;
messageDTO.setTraceId(traceId);
GicMQClient clientInstance = GICMQClientUtil.getClientInstance();
try {
......
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