|
|
|
@@ -209,23 +209,25 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService { |
|
|
|
WxCUserTags uTag = wxCUserTagsMapper.selectByPrimaryKey(entity.getTagId()); |
|
|
|
if (StringUtils.isNotBlank(uTag.getTags())) { |
|
|
|
List<Long> ids = JSONObject.parseArray(uTag.getTags(), Long.class); |
|
|
|
WxTags wxTagsQ = new WxTags(); |
|
|
|
wxTagsQ.setIds(ids); |
|
|
|
List<WxTags> tagList = wxTagsMapper.findList(wxTagsQ); |
|
|
|
String tagNames = ""; |
|
|
|
String tagIds = ""; |
|
|
|
List<Long> tagIdList = new ArrayList<>(); |
|
|
|
for (WxTags wt : tagList) { |
|
|
|
tagNames += wt.getName() + "/"; |
|
|
|
tagIds += wt.getId() + ","; |
|
|
|
tagIdList.add(wt.getId()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(tagNames)) { |
|
|
|
entity.setTagNames(tagNames.substring(0, tagNames.length() - 1)); |
|
|
|
tagCellTwo.setCellValue(entity.getTagNames()); |
|
|
|
} |
|
|
|
if (StringUtils.isNoneBlank(tagIds)) { |
|
|
|
entity.setTagIds(tagIds.substring(0, tagIds.length() - 1)); |
|
|
|
if (ids.size() > 0) { |
|
|
|
WxTags wxTagsQ = new WxTags(); |
|
|
|
wxTagsQ.setIds(ids); |
|
|
|
List<WxTags> tagList = wxTagsMapper.findList(wxTagsQ); |
|
|
|
String tagNames = ""; |
|
|
|
String tagIds = ""; |
|
|
|
List<Long> tagIdList = new ArrayList<>(); |
|
|
|
for (WxTags wt : tagList) { |
|
|
|
tagNames += wt.getName() + "/"; |
|
|
|
tagIds += wt.getId() + ","; |
|
|
|
tagIdList.add(wt.getId()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(tagNames)) { |
|
|
|
entity.setTagNames(tagNames.substring(0, tagNames.length() - 1)); |
|
|
|
tagCellTwo.setCellValue(entity.getTagNames()); |
|
|
|
} |
|
|
|
if (StringUtils.isNoneBlank(tagIds)) { |
|
|
|
entity.setTagIds(tagIds.substring(0, tagIds.length() - 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|