记得上下班打卡 | 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
ce55657f
Commit
ce55657f
authored
Sep 22, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_member_voucher_social' into dev_member_voucher_social
parents
454e1cc7
015b6795
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
KylinOrderTicketsServiceImpl.java
...vice/order/service/impl/KylinOrderTicketsServiceImpl.java
+6
-10
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/KylinOrderTicketsServiceImpl.java
View file @
ce55657f
...
...
@@ -121,7 +121,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
return
ResponseDto
.
failure
(
"票种类型错误"
);
//参数错误
}
else
if
(
payOrderParam
.
getIsElectronic
().
equals
(
1
)
&&
ticketData
.
getIsElectronic
().
equals
(
0
))
{
return
ResponseDto
.
failure
(
"票种类型错误"
);
//参数错误
}
else
if
(
payOrderParam
.
getIsExpress
().
equals
(
0
)
&&
payOrderParam
.
getIsElectronic
().
equals
(
0
))
{
}
else
if
(
payOrderParam
.
getIsExpress
().
equals
(
0
)
&&
payOrderParam
.
getIsElectronic
().
equals
(
0
))
{
return
ResponseDto
.
failure
(
"票种类型错误"
);
//参数错误
}
...
...
@@ -763,32 +763,28 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
//支付时间
LocalDateTime
now
=
LocalDateTime
.
now
();
String
lock
=
"order_lock:"
+
syncOrderParam
.
getOrderCode
();
// if (!redisLockUtil.tryLock(lock, 1, 5)) {
// log.error("参数错误");
// return "fail";//参数错误
// }
String
timePay
=
syncOrderParam
.
getPaymentAt
();
KylinOrderTicketVo
orderTicketData
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"orderCode"
).
is
(
syncOrderParam
.
getOrderCode
())),
KylinOrderTicketVo
.
class
,
KylinOrderTicketVo
.
class
.
getSimpleName
());
if
(
orderTicketData
==
null
)
{
log
.
error
(
"订单不存在"
);
log
.
error
(
"订单
号:"
+
syncOrderParam
.
getOrderCode
()
+
" 订单
不存在"
);
return
"fail"
;
//订单不存在
}
if
(
orderTicketData
.
getStatus
()
!=
KylinTableStatusConst
.
ORDER_STATUS0
)
{
if
(
orderTicketData
.
getPayCode
().
equals
(
syncOrderParam
.
getCode
())
&&
orderTicketData
.
getStatus
()
==
KylinTableStatusConst
.
ORDER_STATUS1
)
{
log
.
error
(
"已经支付"
);
log
.
error
(
"
订单号:"
+
syncOrderParam
.
getOrderCode
()
+
"
已经支付"
);
return
"success"
;
//已经支付
}
if
(!
orderTicketData
.
getPayCode
().
equals
(
syncOrderParam
.
getCode
()))
{
log
.
error
(
"重复支付"
);
log
.
error
(
"
订单号:"
+
syncOrderParam
.
getOrderCode
()
+
"
重复支付"
);
return
"fail"
;
//重复支付
}
}
if
(
orderTicketData
.
getPriceActual
().
compareTo
(
syncOrderParam
.
getPrice
())
!=
0
)
{
log
.
error
(
"价格不符"
);
log
.
error
(
"
订单号:"
+
syncOrderParam
.
getOrderCode
()
+
"
价格不符"
);
return
"fail"
;
//价格不符
}
...
...
@@ -798,7 +794,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
LinkedList
<
Object
[]>
sqlsDataC
=
ObjectUtil
.
cloneLinkedListObj
();
LinkedList
<
Object
[]>
sqlsDataD
=
ObjectUtil
.
cloneLinkedListObj
();
LocalDateTime
strTime
=
LocalDateTime
.
now
();
LocalDateTime
strTime
=
LocalDateTime
.
now
()
.
plusSeconds
(
10
)
;
KylinOrderTickets
orderTickets
=
KylinOrderTickets
.
getNew
();
KylinOrderTicketStatus
orderTicketStatus
=
KylinOrderTicketStatus
.
getNew
();
...
...
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