记得上下班打卡 | 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
673dcef3
Commit
673dcef3
authored
Dec 08, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
演出列表修改
parent
cbda0e9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
MongoMerchantUtils.java
...m/liquidnet/service/merchant/util/MongoMerchantUtils.java
+4
-4
No files found.
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/util/MongoMerchantUtils.java
View file @
673dcef3
...
@@ -279,7 +279,8 @@ public class MongoMerchantUtils {
...
@@ -279,7 +279,8 @@ public class MongoMerchantUtils {
performanceIdList
=
permissionVoList
.
stream
().
map
(
MerchantAuthorizationPerformanceVo:
:
getPerformanceId
).
collect
(
Collectors
.
toList
());
performanceIdList
=
permissionVoList
.
stream
().
map
(
MerchantAuthorizationPerformanceVo:
:
getPerformanceId
).
collect
(
Collectors
.
toList
());
}
}
//查询演出
//查询演出
Criteria
criteria
=
performanceIdList
==
null
?
Criteria
.
where
(
"performancesId"
).
ne
(
null
)
:
Criteria
.
where
(
"performancesId"
).
in
(
performanceIdList
);
Criteria
criteriaPerformanceId
=
performanceIdList
==
null
?
Criteria
.
where
(
"performancesId"
).
ne
(
null
)
:
Criteria
.
where
(
"performancesId"
).
in
(
performanceIdList
);
Criteria
criteria
=
Criteria
.
where
(
"performancesId"
).
ne
(
null
);
if
(
performancePartnerListParam
.
getTitle
()
!=
null
&&
!
performancePartnerListParam
.
getTitle
().
isEmpty
())
{
if
(
performancePartnerListParam
.
getTitle
()
!=
null
&&
!
performancePartnerListParam
.
getTitle
().
isEmpty
())
{
criteria
=
criteria
.
and
(
"title"
).
regex
(
".*"
+
performancePartnerListParam
.
getTitle
()
+
".*"
);
criteria
=
criteria
.
and
(
"title"
).
regex
(
".*"
+
performancePartnerListParam
.
getTitle
()
+
".*"
);
}
}
...
@@ -291,13 +292,12 @@ public class MongoMerchantUtils {
...
@@ -291,13 +292,12 @@ public class MongoMerchantUtils {
criteria
=
criteria
.
and
(
"appStatus"
).
is
(
performancePartnerListParam
.
getStatus
());
criteria
=
criteria
.
and
(
"appStatus"
).
is
(
performancePartnerListParam
.
getStatus
());
}
}
if
(
performancePartnerListParam
.
getTimeStart
()
!=
null
&&
!
performancePartnerListParam
.
getTimeStart
().
isEmpty
())
{
if
(
performancePartnerListParam
.
getTimeStart
()
!=
null
&&
!
performancePartnerListParam
.
getTimeStart
().
isEmpty
())
{
criteria
=
criteria
.
and
(
"timeStart"
).
gte
(
performancePartnerListParam
.
getTimeStart
()).
and
(
"timeStart"
).
lte
(
performancePartnerListParam
.
getTimeEnd
());
criteria
=
criteria
.
and
(
"timeStart"
).
gte
(
performancePartnerListParam
.
getTimeStart
()).
lte
(
performancePartnerListParam
.
getTimeEnd
());
}
}
}
}
}
}
List
<
KylinPerformanceVo
>
performanceVos
=
mongoTemplate
.
find
(
List
<
KylinPerformanceVo
>
performanceVos
=
mongoTemplate
.
find
(
Query
.
query
(
new
Criteria
().
orOperator
(
criteria
,
Criteria
.
where
(
"merchantId"
).
is
(
performancePartnerListParam
.
getMerchantId
()))).
with
(
Sort
.
by
(
orderBy
,
performancePartnerListParam
.
getOrderItem
())),
Query
.
query
(
new
Criteria
().
andOperator
(
criteria
).
orOperator
(
criteriaPerformanceId
,
Criteria
.
where
(
"merchantId"
).
is
(
performancePartnerListParam
.
getMerchantId
()))).
with
(
Sort
.
by
(
orderBy
,
performancePartnerListParam
.
getOrderItem
())),
// Query.query(criteria.orOperator(Criteria.where("merchantId").is(performancePartnerListParam.getMerchantId()))).with(Sort.by(orderBy, performancePartnerListParam.getOrderItem())),
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
//查询销量
//查询销量
Aggregation
aggregation
=
Aggregation
.
newAggregation
(
Aggregation
aggregation
=
Aggregation
.
newAggregation
(
...
...
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