Commit 42862a4f by fudahua

会员标签同步-traceId

parent 8bf65c2d
......@@ -824,10 +824,10 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
@Override
public void checkQywxSync(String params) {
List<TabHaobanWxEnterprise> wxEnterprises = wxEnterpriseService.listAll();
ProviderLocalTag providerLocalTag = ProviderLocalTag.tag.get();
String traceIdMid = providerLocalTag.traceId;
wxEnterprises.forEach(wxEnterprise -> {
ProviderLocalTag providerLocalTag = ProviderLocalTag.tag.get();
String traceId = providerLocalTag.traceId + "_" + wxEnterprise.getWxEnterpriseId();
providerLocalTag.traceId = traceId;
String traceId = providerLocalTag.traceId = traceIdMid + "_" + wxEnterprise.getWxEnterpriseId();
logger.info("企业:{}", wxEnterprise.getWxEnterpriseId());
try {
List<TabQywxTagRelation> tagRelations = qywxTagService.listAllQywxRelation(wxEnterprise.getWxEnterpriseId());
......
......@@ -58,7 +58,7 @@ public class QywxTagTest {
@Test
public void test3() {
qywxTagApiService.checkQywxSync();
qywxTagApiService.checkQywxSync("-1");
}
}
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