记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
35b37f56
Commit
35b37f56
authored
Jun 24, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本地演出列表有任何搜索条件 不进行推荐
parent
fcf9b55c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
KylinPerformancesServiceImpl.java
...vice/kylin/service/impl/KylinPerformancesServiceImpl.java
+9
-1
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinPerformancesServiceImpl.java
View file @
35b37f56
...
@@ -61,21 +61,29 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
...
@@ -61,21 +61,29 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
)
{
)
{
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
(
cityName
);
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
(
cityName
);
// 是否启用推荐
Integer
isRecommend
=
1
;
// 判断搜索 处理新数据
// 判断搜索 处理新数据
List
<
KylinPerformanceVo
>
performancesListNew
=
new
ArrayList
<>();
List
<
KylinPerformanceVo
>
performancesListNew
=
new
ArrayList
<>();
List
<
String
>
performancesIds
=
new
ArrayList
<>();
List
<
String
>
performancesIds
=
new
ArrayList
<>();
for
(
KylinPerformanceVo
info
:
performancesList
)
{
for
(
KylinPerformanceVo
info
:
performancesList
)
{
boolean
isShow
=
true
;
boolean
isShow
=
true
;
if
(
type
>
0
)
{
if
(
type
>
0
)
{
isRecommend
=
0
;
if
(
info
.
getType
()
!=
type
)
{
if
(
info
.
getType
()
!=
type
)
{
isShow
=
false
;
isShow
=
false
;
}
}
}
}
if
(
null
!=
isExclusive
||
null
!=
isDiscount
||
null
!=
isAdvance
)
{
if
(
null
!=
isExclusive
||
null
!=
isDiscount
||
null
!=
isAdvance
)
{
isRecommend
=
0
;
if
(
info
.
getIsExclusive
()
!=
isExclusive
&&
info
.
getIsDiscount
()
!=
isDiscount
&&
info
.
getIsAdvance
()
!=
isAdvance
)
{
if
(
info
.
getIsExclusive
()
!=
isExclusive
&&
info
.
getIsDiscount
()
!=
isDiscount
&&
info
.
getIsAdvance
()
!=
isAdvance
)
{
isShow
=
false
;
isShow
=
false
;
}
}
}
}
if
(
days
>
0
)
{
isRecommend
=
0
;
}
if
(
isShow
)
{
if
(
isShow
)
{
performancesIds
.
add
(
info
.
getPerformancesId
());
performancesIds
.
add
(
info
.
getPerformancesId
());
performancesListNew
.
add
(
info
);
performancesListNew
.
add
(
info
);
...
@@ -86,7 +94,7 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
...
@@ -86,7 +94,7 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
// 推荐
// 推荐
int
is_native
=
1
;
int
is_native
=
1
;
int
recommend
=
performancesListNew
.
size
();
int
recommend
=
performancesListNew
.
size
();
if
(
recommend
<=
2
)
{
if
(
recommend
<=
2
&&
1
==
isRecommend
)
{
List
<
KylinPerformanceVo
>
performancesListRecommend
=
dataUtils
.
getPerformancesListIsSystemRecommend
();
List
<
KylinPerformanceVo
>
performancesListRecommend
=
dataUtils
.
getPerformancesListIsSystemRecommend
();
if
(!
CollectionUtils
.
isEmpty
(
performancesListRecommend
))
{
if
(!
CollectionUtils
.
isEmpty
(
performancesListRecommend
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment