记得上下班打卡 | 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
afd116ff
Commit
afd116ff
authored
Jul 14, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
演出预告列表修改
parent
a845a2ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
DataUtils.java
...ain/java/com/liquidnet/service/kylin/utils/DataUtils.java
+16
-8
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/DataUtils.java
View file @
afd116ff
...
...
@@ -362,8 +362,8 @@ public class DataUtils {
if
(
obj
!=
null
)
{
//获取ids
HashMap
<
String
,
Object
>
map
=
(
HashMap
<
String
,
Object
>)
obj
;
List
<
Integer
>
toDayIds
=
(
List
<
Integer
>)
map
.
get
(
"toDayIds"
);
List
<
Integer
>
threeDayIds
=
(
List
<
Integer
>)
map
.
get
(
"threeDayIds"
);
List
<
String
>
toDayIds
=
(
List
<
String
>)
map
.
get
(
"toDayIds"
);
List
<
String
>
threeDayIds
=
(
List
<
String
>)
map
.
get
(
"threeDayIds"
);
List
<
String
>
toDayNftIds
=
(
List
<
String
>)
map
.
get
(
"toDayNftIds"
);
List
<
String
>
threeNftIds
=
(
List
<
String
>)
map
.
get
(
"threeNftIds"
);
List
<
String
>
toDayCombinationIds
=
(
List
<
String
>)
map
.
get
(
"toDayCombinationIds"
);
...
...
@@ -371,12 +371,22 @@ public class DataUtils {
// 固定条件
List
<
KylinPerformanceVo
>
toDayList
=
getKylinPerformanceVos
(
toDayIds
);
toDayList
.
forEach
(
kylinPerformanceVo
->
{
kylinPerformanceVo
.
setNoticeImage
(
null
);
kylinPerformanceVo
.
setTicketTimeList
(
null
);
kylinPerformanceVo
.
setDetails
(
null
);
});
/*List<NoticeKylinPerformanceVo> toDayVoList = toDayList.stream().map(kylinPerformanceVo -> {
return NoticeKylinPerformanceVo.getNew().copy(kylinPerformanceVo);
}).collect(Collectors.toList());*/
// 固定条件
List
<
KylinPerformanceVo
>
threeDaysList
=
getKylinPerformanceVos
(
threeDayIds
);
threeDaysList
.
forEach
(
kylinPerformanceVo
->
{
kylinPerformanceVo
.
setNoticeImage
(
null
);
kylinPerformanceVo
.
setTicketTimeList
(
null
);
kylinPerformanceVo
.
setDetails
(
null
);
});
/*List<NoticeKylinPerformanceVo> threeDayVoList = threeDaysList.stream().map(kylinPerformanceVo -> {
return NoticeKylinPerformanceVo.getNew().copy(kylinPerformanceVo);
}).collect(Collectors.toList());*/
...
...
@@ -395,9 +405,7 @@ public class DataUtils {
//组合购
//当天
List
<
GoblinMixDetailsVo
>
toDayCombinationList
=
getGoblinMixDetailsVos
(
toDayCombinationIds
);
List
<
NoticeGoblinMixDetailsVo
>
toDayCombinationVoList
=
toDayCombinationList
.
stream
().
map
(
goblinMixDetailsVo
->
{
return
NoticeGoblinMixDetailsVo
.
getNew
().
copy
(
goblinMixDetailsVo
);
}).
collect
(
Collectors
.
toList
());
List
<
NoticeGoblinMixDetailsVo
>
toDayCombinationVoList
=
toDayCombinationList
.
stream
().
map
(
goblinMixDetailsVo
->
NoticeGoblinMixDetailsVo
.
getNew
().
copy
(
goblinMixDetailsVo
)).
collect
(
Collectors
.
toList
());
//三天
List
<
GoblinMixDetailsVo
>
threeDayCombinationList
=
getGoblinMixDetailsVos
(
threeDayCombinationIds
);
...
...
@@ -507,7 +515,7 @@ public class DataUtils {
return
toDaysNftList
;
}
private
List
<
KylinPerformanceVo
>
getKylinPerformanceVos
(
List
<
Integer
>
toDayIds
)
{
private
List
<
KylinPerformanceVo
>
getKylinPerformanceVos
(
List
<
String
>
toDayIds
)
{
List
<
KylinPerformanceVo
>
toDayList
=
new
ArrayList
<>();
//redis key
String
key
=
KylinRedisConst
.
PERFORMANCES
;
...
...
@@ -549,7 +557,7 @@ public class DataUtils {
query
.
fields
().
exclude
(
"describeElectronic"
);
List
<
KylinPerformanceVo
>
toDayList
=
mongoTemplate
.
find
(
query
,
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
List
<
String
>
roadShowId
=
toDayList
.
stream
().
filter
(
r
->
!
r
.
getRoadShowId
().
equals
(
"0"
)).
map
(
KylinPerformanceVo
->
KylinPerformanceVo
.
getRoadShowId
()).
collect
(
Collectors
.
toList
());
List
<
Integer
>
toDayIds
=
toDayList
.
stream
().
map
(
KylinPerformanceVo:
:
getMi
d
).
collect
(
Collectors
.
toList
());
List
<
String
>
toDayIds
=
toDayList
.
stream
().
map
(
KylinPerformanceVo:
:
getPerformancesI
d
).
collect
(
Collectors
.
toList
());
// 固定条件
Query
queryT
=
getCommonWhere
();
// 排序
...
...
@@ -567,7 +575,7 @@ public class DataUtils {
queryT
.
fields
().
exclude
(
"describeElectronic"
);
queryT
.
addCriteria
(
Criteria
.
where
(
"roadShowId"
).
nin
(
roadShowId
));
List
<
KylinPerformanceVo
>
threeDaysList
=
mongoTemplate
.
find
(
queryT
,
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
List
<
Integer
>
threeDayIds
=
threeDaysList
.
stream
().
map
(
KylinPerformanceVo:
:
getMi
d
).
collect
(
Collectors
.
toList
());
List
<
String
>
threeDayIds
=
threeDaysList
.
stream
().
map
(
KylinPerformanceVo:
:
getPerformancesI
d
).
collect
(
Collectors
.
toList
());
//数字藏品
LocalDateTime
nowTimeTime
=
DateUtil
.
asLocalDateTime
((
Date
)
toDayTime
.
get
(
"start"
));
...
...
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