|
|
|
@@ -143,25 +143,27 @@ public class WxCUserBasicInfoController extends BaseController { |
|
|
|
WxCUserTags uTag = wxCUserTagsService.getById(info.getTagId()); |
|
|
|
if (StringUtils.isNotBlank(uTag.getTags())) { |
|
|
|
List<Long> ids = JSONObject.parseArray(uTag.getTags(), Long.class); |
|
|
|
WxTags wxTags = new WxTags(); |
|
|
|
wxTags.setIds(ids); |
|
|
|
PageInfo<WxTags> page = wxTagsService.listAsPage(wxTags, 1, 5000); |
|
|
|
String tagNames = ""; |
|
|
|
String tagIds = ""; |
|
|
|
List<Long> tagIdList = new ArrayList<>(); |
|
|
|
for (WxTags wt : page.getList()) { |
|
|
|
tagNames += wt.getName() + "/"; |
|
|
|
tagIds += wt.getId() + ","; |
|
|
|
tagIdList.add(wt.getId()); |
|
|
|
if (ids.size() > 0) { |
|
|
|
WxTags wxTags = new WxTags(); |
|
|
|
wxTags.setIds(ids); |
|
|
|
PageInfo<WxTags> page = wxTagsService.listAsPage(wxTags, 1, 5000); |
|
|
|
String tagNames = ""; |
|
|
|
String tagIds = ""; |
|
|
|
List<Long> tagIdList = new ArrayList<>(); |
|
|
|
for (WxTags wt : page.getList()) { |
|
|
|
tagNames += wt.getName() + "/"; |
|
|
|
tagIds += wt.getId() + ","; |
|
|
|
tagIdList.add(wt.getId()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(tagNames)) { |
|
|
|
info.setTagNames(tagNames.substring(0, tagNames.length() - 1)); |
|
|
|
} |
|
|
|
if (StringUtils.isNoneBlank(tagIds)) { |
|
|
|
info.setTagIds(tagIds.substring(0, tagIds.length() - 1)); |
|
|
|
} |
|
|
|
long count = wxCUserTagsService.findCountByTag(getTenantId(), tagIdList); |
|
|
|
info.setCount(count); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(tagNames)) { |
|
|
|
info.setTagNames(tagNames.substring(0, tagNames.length() - 1)); |
|
|
|
} |
|
|
|
if (StringUtils.isNoneBlank(tagIds)) { |
|
|
|
info.setTagIds(tagIds.substring(0, tagIds.length() - 1)); |
|
|
|
} |
|
|
|
long count = wxCUserTagsService.findCountByTag(getTenantId(), tagIdList); |
|
|
|
info.setCount(count); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
|