记得上下班打卡 | 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
396bb1a5
Commit
396bb1a5
authored
Jul 07, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下架活动不能下单
parent
516ff8e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MixOrderServiceImpl.java
...idnet/service/order/service/impl/MixOrderServiceImpl.java
+6
-6
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/MixOrderServiceImpl.java
View file @
396bb1a5
...
...
@@ -86,7 +86,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
LocalDateTime
st
=
LocalDateTime
.
parse
(
mixVo
.
getTimeStart
(),
DTF_YMD_HMS
);
LocalDateTime
et
=
LocalDateTime
.
parse
(
mixVo
.
getTimeEnd
(),
DTF_YMD_HMS
);
LocalDateTime
nt
=
LocalDateTime
.
now
();
if
(!
nt
.
isAfter
(
st
)
&&
nt
.
isBefore
(
et
)
)
{
if
(!
(
nt
.
isAfter
(
st
)
&&
nt
.
isBefore
(
et
))
||
mixVo
.
getStatus
()
==
7
)
{
return
ResponseDto
.
failure
(
"不在活动有效期内"
);
}
//判断白名单
...
...
@@ -186,7 +186,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
if
(
skuInfoList
.
size
()
>
0
)
{
preParam
=
goblinOrder
(
skuInfoList
,
skuMix
,
param
.
getAddressesVo
(),
mobile
,
source
,
version
,
nickName
,
nt
,
uid
,
param
.
getPayType
(),
param
.
getDeviceFrom
());
}
return
ResponseDto
.
success
(
payOrder
(
nftOrderList
,
preParam
,
orderMasterCode
,
param
.
getShowUrl
(),
param
.
getReturnUrl
(),
param
.
getDeviceFrom
(),
param
.
getPayType
(),
mixId
,
mixVo
.
getName
(),
param
.
getOpenId
(),
nt
,
storeName
));
return
ResponseDto
.
success
(
payOrder
(
nftOrderList
,
preParam
,
orderMasterCode
,
param
.
getShowUrl
(),
param
.
getReturnUrl
(),
param
.
getDeviceFrom
(),
param
.
getPayType
(),
mixId
,
mixVo
.
getName
(),
param
.
getOpenId
(),
nt
,
storeName
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
initStock
(
canBuyIds
,
mixId
,
isUseLimit
,
uid
);
...
...
@@ -550,7 +550,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
boolean
isSuccess
=
true
;
for
(
String
orderId
:
nft
)
{
if
(
""
.
equals
(
orderId
))
{
if
(
""
.
equals
(
orderId
))
{
break
;
}
String
nftR
=
syncNft
(
orderId
,
code
,
status
,
paymentType
,
paymentId
,
paymentAt
);
...
...
@@ -559,7 +559,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
}
}
for
(
String
orderId
:
goblin
)
{
if
(
""
.
equals
(
orderId
))
{
if
(
""
.
equals
(
orderId
))
{
break
;
}
String
goblinR
=
syncGoblin
(
orderId
,
code
,
status
,
paymentType
,
paymentId
,
paymentAt
);
...
...
@@ -766,7 +766,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
String
[]
goblin
=
map
.
get
(
"goblin"
);
for
(
String
orderId
:
nft
)
{
if
(
""
.
equals
(
orderId
))
{
if
(
""
.
equals
(
orderId
))
{
break
;
}
String
nftR
=
nftCheck
(
uid
,
orderId
);
...
...
@@ -777,7 +777,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
}
}
for
(
String
orderId
:
goblin
)
{
if
(
""
.
equals
(
orderId
))
{
if
(
""
.
equals
(
orderId
))
{
break
;
}
String
goblinR
=
goblinCheck
(
uid
,
orderId
);
...
...
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