记得上下班打卡 | 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
10672b3d
Commit
10672b3d
authored
Nov 19, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下单 提示和增加回滚库存文案
parent
2b043f16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
24 deletions
+21
-24
KylinPerformanceVo.java
...uidnet/service/kylin/dto/vo/mongo/KylinPerformanceVo.java
+3
-5
MongoMerchantUtils.java
...m/liquidnet/service/merchant/util/MongoMerchantUtils.java
+18
-19
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/mongo/KylinPerformanceVo.java
View file @
10672b3d
...
@@ -73,9 +73,7 @@ public class KylinPerformanceVo {
...
@@ -73,9 +73,7 @@ public class KylinPerformanceVo {
private
Integer
isRecommend
;
private
Integer
isRecommend
;
@ApiModelProperty
(
value
=
"状态"
)
@ApiModelProperty
(
value
=
"状态"
)
private
Integer
appStatus
;
private
Integer
appStatus
;
@ApiModelProperty
(
value
=
"状态 [1正常|2非正常]"
)
@ApiModelProperty
(
value
=
"是否可买 状态 [1正常|2非正常]"
)
private
Integer
status_sell
;
@ApiModelProperty
(
value
=
"是否可买"
)
private
Integer
statusSell
;
private
Integer
statusSell
;
@ApiModelProperty
(
value
=
"是否关联会员"
)
@ApiModelProperty
(
value
=
"是否关联会员"
)
private
Integer
isMember
;
private
Integer
isMember
;
...
@@ -141,9 +139,9 @@ public class KylinPerformanceVo {
...
@@ -141,9 +139,9 @@ public class KylinPerformanceVo {
this
.
approvalUrl
=
performance
.
getApprovalUrl
();
this
.
approvalUrl
=
performance
.
getApprovalUrl
();
this
.
rejectTxt
=
performance
.
getRejectTxt
();
this
.
rejectTxt
=
performance
.
getRejectTxt
();
if
(
performance
.
getApprovalUrl
()
==
null
||
performance
.
getApprovalUrl
().
isEmpty
())
{
if
(
performance
.
getApprovalUrl
()
==
null
||
performance
.
getApprovalUrl
().
isEmpty
())
{
this
.
status
_s
ell
=
0
;
this
.
status
S
ell
=
0
;
}
else
{
}
else
{
this
.
status
_s
ell
=
1
;
this
.
status
S
ell
=
1
;
}
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/util/MongoMerchantUtils.java
View file @
10672b3d
...
@@ -231,28 +231,27 @@ public class MongoMerchantUtils {
...
@@ -231,28 +231,27 @@ public class MongoMerchantUtils {
),
),
MerchantAuthorizationPerformanceVo
.
class
,
MerchantAuthorizationPerformanceVo
.
class
.
getSimpleName
());
MerchantAuthorizationPerformanceVo
.
class
,
MerchantAuthorizationPerformanceVo
.
class
.
getSimpleName
());
List
<
String
>
performanceIdList
=
permissionVoList
.
stream
().
map
(
MerchantAuthorizationPerformanceVo:
:
getPerformanceId
).
collect
(
Collectors
.
toList
());
List
<
String
>
performanceIdList
=
permissionVoList
.
stream
().
map
(
MerchantAuthorizationPerformanceVo:
:
getPerformanceId
).
collect
(
Collectors
.
toList
());
// List<String> performanceIdList = new ArrayList<>();
// performanceIdList.add("393126530855854085960596");
// performanceIdList.add("324470932321198083852669");
// performanceIdList.add("324517967623741449058314");
//查询演出
//查询演出
Criteria
criteria
=
Criteria
.
where
(
"performancesId"
).
in
(
performanceIdList
);
Criteria
criteria
=
Criteria
.
where
(
"performancesId"
).
in
(
performanceIdList
);
// if (performancePartnerListParam.getTitle() != null && !performancePartnerListParam.getTitle().isEmpty()) {
if
(
performancePartnerListParam
.
getTitle
()
!=
null
&&
!
performancePartnerListParam
.
getTitle
().
isEmpty
())
{
// criteria = criteria.where("title").regex(".*" + performancePartnerListParam.getTitle() + ".*");
criteria
=
criteria
.
and
(
"title"
).
regex
(
".*"
+
performancePartnerListParam
.
getTitle
()
+
".*"
);
// }
}
// if (performancePartnerListParam.getSize() != null && !performancePartnerListParam.getTitle().isEmpty()) {
if
(
performancePartnerListParam
.
getStatus
()
!=
null
)
{
// criteria = criteria.where("title").regex(".*" + performancePartnerListParam.getTitle() + ".*");
if
(
performancePartnerListParam
.
getStatus
()==
0
){
// }
criteria
=
criteria
.
and
(
"appStatus"
).
is
(
0
);
// if (performancePartnerListParam.getTimeStart() != null && !performancePartnerListParam.getTitle().isEmpty()) {
}
else
{
// criteria = criteria.where("title").regex(".*" + performancePartnerListParam.getTitle() + ".*");
if
(
performancePartnerListParam
.
getStatus
()!=-
2
){
// }
criteria
=
criteria
.
and
(
"appStatus"
).
is
(
performancePartnerListParam
.
getStatus
());
// if (performancePartnerListParam.getOrderType() != null && !performancePartnerListParam.getTitle().isEmpty()) {
}
// criteria = criteria.where("title").regex(".*" + performancePartnerListParam.getTitle() + ".*");
if
(
performancePartnerListParam
.
getTimeStart
()
!=
null
&&
!
performancePartnerListParam
.
getTimeStart
().
isEmpty
())
{
// }
criteria
=
criteria
.
and
(
"timeStart"
).
gte
(
performancePartnerListParam
.
getTimeStart
()).
and
(
"timeStart"
).
lte
(
performancePartnerListParam
.
getTimeEnd
());
// if (performancePartnerListParam.getStopSellDay() != -2 && !performancePartnerListParam.getTitle().isEmpty()) {
}
// criteria = criteria.where("title").regex(".*" + performancePartnerListParam.getTitle() + ".*");
// if (performancePartnerListParam.getStopSellDay() != -2) {
// }
// criteria = criteria.and("timeEnd").gte(performancePartnerListParam.getStopSellDay()).and("timeEnd").lte(DateUtil.getNowTime());
// }
}
}
List
<
KylinPerformanceVo
>
performanceVos
=
mongoTemplate
.
find
(
List
<
KylinPerformanceVo
>
performanceVos
=
mongoTemplate
.
find
(
Query
.
query
(
criteria
)
Query
.
query
(
criteria
)
.
with
(
Sort
.
by
(
orderBy
,
performancePartnerListParam
.
getOrderItem
()))
.
with
(
Sort
.
by
(
orderBy
,
performancePartnerListParam
.
getOrderItem
()))
...
...
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