提交 f0816a83 作者: 布红亮

查询新增全部和其他查询-排除国内的

上级 401cb331
......@@ -365,7 +365,7 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
thinktankBasicInfoListVo.setExcludeTypeIds(Lists.newArrayList(CommonConstants.CHINA_ID));
} else if (StringUtils.equals(thinktankBasicInfoListVo.getQueryType(), "other")) {
// 其它-排除热门的
cacheTypeStr = thinktankBasicInfoListVo.getExcludeTypeIds().toString();
cacheTypeStr = "other" + thinktankBasicInfoListVo.getExcludeTypeIds().toString();
thinktankBasicInfoListVo.setTypeId(null);
thinktankBasicInfoListVo.getExcludeTypeIds().add(CommonConstants.CHINA_ID);
} else {
......@@ -468,7 +468,7 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
}
}
if(StringUtils.isNotBlank(cacheTypeStr) && StringUtils.isBlank(thinktankBasicInfoListVo.getTagId())){
if (Arrays.asList("all", "other").contains(cacheTypeStr)) {
if (Arrays.asList("all", "other").contains(cacheTypeStr) || cacheTypeStr.contains("other")) {
// all 和other数据量过大,只存id
List<Map<String, Object>> ids = (List<Map<String, Object>>) page.getRecords().stream()
.map(v -> {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论