|
|
|
@@ -762,10 +762,11 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService { |
|
|
|
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId); |
|
|
|
WxCUserTags userTags = getById(wxCUserBasicInfo.getTagId()); |
|
|
|
List<Long> tagList = JSONArray.parseArray(userTags.getTags(), Long.class); |
|
|
|
if (!tagList.isEmpty()) { |
|
|
|
tagList.addAll(tags); |
|
|
|
} |
|
|
|
String tagStr = JSONArray.toJSONString(tagList); |
|
|
|
Set<Long> set = new HashSet<>(); |
|
|
|
set.addAll(tagList); |
|
|
|
List<Long> tempList = new ArrayList<>(); |
|
|
|
tempList.addAll(set); |
|
|
|
String tagStr = JSONArray.toJSONString(tempList); |
|
|
|
userTags.setTags(tagStr); |
|
|
|
userTags.setUpdateDate(new Date()); |
|
|
|
wxCUserTagsMapper.updateById(userTags); |
|
|
|
|