|
|
|
@@ -5,6 +5,7 @@ import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
@@ -62,12 +63,14 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public long findCountByTag(List<Long> tagIds) { |
|
|
|
return wxCUserTagsMapper.findCountByTag(tagIds); |
|
|
|
String str = JSON.toJSONString(tagIds); |
|
|
|
return wxCUserTagsMapper.findCountByTags(str); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<WxCUser> findUserByTag(List<Long> tagIds) { |
|
|
|
List<Long> userIds = wxCUserTagsMapper.findUserByTag(tagIds); |
|
|
|
String str = JSON.toJSONString(tagIds); |
|
|
|
List<Long> userIds = wxCUserTagsMapper.findUserByTags(str); |
|
|
|
if(userIds.size()==0) { |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
|