记得上下班打卡 | git大法好,push需谨慎

Commit 35b37f56 authored by jiangxiulong's avatar jiangxiulong

本地演出列表有任何搜索条件 不进行推荐

parent fcf9b55c
......@@ -61,21 +61,29 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
) {
List<KylinPerformanceVo> performancesList = dataUtils.getPerformancesListOfcityName(cityName);
// 是否启用推荐
Integer isRecommend = 1;
// 判断搜索 处理新数据
List<KylinPerformanceVo> performancesListNew = new ArrayList<>();
List<String> performancesIds = new ArrayList<>();
for (KylinPerformanceVo info : performancesList) {
boolean isShow = true;
if (type > 0) {
isRecommend = 0;
if (info.getType() != type) {
isShow = false;
}
}
if (null != isExclusive || null != isDiscount || null != isAdvance) {
isRecommend = 0;
if (info.getIsExclusive() != isExclusive && info.getIsDiscount() != isDiscount && info.getIsAdvance() != isAdvance) {
isShow = false;
}
}
if (days > 0) {
isRecommend = 0;
}
if (isShow) {
performancesIds.add(info.getPerformancesId());
performancesListNew.add(info);
......@@ -86,7 +94,7 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
// 推荐
int is_native = 1;
int recommend = performancesListNew.size();
if (recommend <= 2) {
if (recommend <= 2 && 1 == isRecommend) {
List<KylinPerformanceVo> performancesListRecommend = dataUtils.getPerformancesListIsSystemRecommend();
if (!CollectionUtils.isEmpty(performancesListRecommend)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment