Commit 8a854a17 by fudahua

会员标签同步-traceId

parent 311cacb2
......@@ -885,7 +885,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
ret.put("描述", "标签数据库不存在:" + relation.getTagItemId());
return ret;
}
ret.put("标签名称", tabQywxTag.getQywxGroupName());
ret.put("名称", tabQywxTag.getQywxGroupName());
List<String> ids = new ArrayList<>();
ids.add(tabQywxTag.getQywxGroupKey());
......@@ -921,7 +921,6 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
Map<String, QywxTagDTO> qywxTagDTOMap = tagItems.stream().collect(Collectors.toMap(dto -> dto.getId(), dto -> dto));
Set<String> qywxKeysSet = qywxTagDTOMap.keySet();
//在gic存在 企业微信不存在
Sets.SetView<String> qywxUnHaves = Sets.difference(gicQywxKeysSet, qywxKeysSet);
//企业微信存在 gic不存在
......@@ -930,12 +929,12 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
//企业微信缺少
if (!CollectionUtils.isEmpty(qywxUnHaves)) {
flag = true;
ret.put("企微缺少标签项", qywxUnHaves.stream().map(mid -> gicQywxTagNameMap.get(mid)).collect(Collectors.joining(", ", "", "")));
ret.put("标签项缺少(企微)", qywxUnHaves.stream().map(mid -> gicQywxTagNameMap.get(mid)).collect(Collectors.joining(", ", "", "")));
}
//gic缺少
if (!CollectionUtils.isEmpty(gicUnHaves)) {
flag = true;
ret.put("gic缺少标签项", gicUnHaves.stream().map(id -> qywxTagDTOMap.get(id).getName()).collect(Collectors.joining(",", "", "")));
ret.put("标签项缺少(gic)", gicUnHaves.stream().map(id -> qywxTagDTOMap.get(id).getName()).collect(Collectors.joining(",", "", "")));
}
if (flag) {
......
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