记得上下班打卡 | 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
a2daeae4
Commit
a2daeae4
authored
Aug 04, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志
parent
d6831cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
OrderUtils.java
...in/java/com/liquidnet/service/kylin/utils/OrderUtils.java
+9
-6
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/OrderUtils.java
View file @
a2daeae4
...
...
@@ -46,7 +46,7 @@ public class OrderUtils {
)
{
Integer
[]
integers
=
orderLimit
(
userId
,
idCard
,
performanceId
,
ticketId
,
isTrueName
);
return
judgeMemberType
(
performanceLimitCount
,
performanceMemberLimitCount
,
performanceLimitIdCard
,
ticketLimitCount
,
ticketMemberLimitCount
,
ticketLimitIdCard
,
ticketLimitCount
,
ticketMemberLimitCount
,
ticketLimitIdCard
,
memberType
,
integers
[
0
],
integers
[
1
],
integers
[
2
],
integers
[
3
],
isTrueName
);
}
...
...
@@ -83,15 +83,18 @@ public class OrderUtils {
public
String
judgeMemberType
(
int
performanceLimitCount
,
int
performanceMemberLimitCount
,
int
performanceLimitIdCard
,
int
ticketLimitCount
,
int
ticketMemberLimitCount
,
int
ticketLimitIdCard
,
int
memberType
,
int
performanceBuyCountUid
,
int
ticketBuyCountUid
,
int
performanceBuyCountIdCard
,
int
ticketBuyCountIdCard
,
int
isTrueName
)
{
log
.
info
(
"转赠:\n演出数量="
+
performanceBuyCountUid
+
"\n演出实名数量="
+
performanceBuyCountIdCard
+
"\n票种数量="
+
ticketBuyCountUid
+
"\n票种实名数量="
+
ticketBuyCountIdCard
);
if
(
memberType
==
1
||
memberType
==
2
)
{
if
(
isTrueName
==
1
)
{
if
(
isTrueName
==
1
)
{
if
(
performanceBuyCountIdCard
>
performanceMemberLimitCount
&&
performanceMemberLimitCount
!=
0
)
{
return
"实名制演出限购"
+
performanceMemberLimitCount
+
"张,已超出"
;
//超过演出维度购买量
}
if
(
ticketBuyCountIdCard
>
ticketMemberLimitCount
&&
ticketMemberLimitCount
!=
0
)
{
return
"实名制票种限购"
+
ticketMemberLimitCount
+
"张,已超出"
;
//超过票维度购买量
}
}
else
{
}
else
{
if
(
performanceBuyCountUid
>
performanceMemberLimitCount
&&
performanceMemberLimitCount
!=
0
)
{
return
"本场演出限购"
+
performanceMemberLimitCount
+
"张,已超出"
;
//超过演出维度购买量
}
...
...
@@ -100,7 +103,7 @@ public class OrderUtils {
}
}
}
else
{
//非会员区间
if
(
isTrueName
==
1
)
{
if
(
isTrueName
==
1
)
{
if
(
performanceBuyCountUid
>
performanceLimitCount
&&
performanceLimitCount
!=
0
)
{
return
"本场演出限购"
+
performanceLimitCount
+
"张,已超出"
;
//超过演出维度购买量
}
...
...
@@ -113,7 +116,7 @@ public class OrderUtils {
if
(
ticketBuyCountIdCard
>
ticketLimitIdCard
&&
ticketLimitIdCard
!=
0
)
{
return
"实名制票种限购"
+
ticketLimitIdCard
+
"张,已超出"
;
//超过演出维度购买量
}
}
else
{
}
else
{
if
(
performanceBuyCountUid
>
performanceLimitCount
&&
performanceLimitCount
!=
0
)
{
return
"本场演出限购"
+
performanceLimitCount
+
"张,已超出"
;
//超过演出维度购买量
}
...
...
@@ -192,7 +195,7 @@ public class OrderUtils {
public
List
<
AdamEntersVo
>
getEnters
(
String
entersIds
,
String
uid
)
{
MultiValueMap
<
String
,
String
>
headers
=
CollectionUtil
.
linkedMultiValueMapStringString
();
headers
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
String
returnVo
=
HttpUtil
.
get
(
adamUrl
+
"/adam/rsc/inquire/enters?entersIds="
+
entersIds
+
"&uid="
+
uid
,
null
,
headers
);
String
returnVo
=
HttpUtil
.
get
(
adamUrl
+
"/adam/rsc/inquire/enters?entersIds="
+
entersIds
+
"&uid="
+
uid
,
null
,
headers
);
ResponseDto
<
List
<
AdamEntersVo
>>
ResponseVo
=
JsonUtils
.
fromJson
(
returnVo
,
new
TypeReference
<
ResponseDto
<
List
<
AdamEntersVo
>>>()
{
});
return
ResponseVo
.
getData
();
...
...
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