记得上下班打卡 | 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
98ff5df9
Commit
98ff5df9
authored
Jul 02, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下单
parent
b8eadb5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+19
-0
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
98ff5df9
...
...
@@ -907,11 +907,14 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
@Override
public
OrderDetailsVo
orderDetails
(
String
orderId
)
{
Long
currentTime
=
System
.
currentTimeMillis
();
OrderDetailsVo
vo
=
new
OrderDetailsVo
();
try
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
// checkOrderTime(uid);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"获取订单详情 -> time:"
+
(
currentTime
)
+
"毫秒"
);
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
null
;
}
...
...
@@ -919,6 +922,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
//TODO 顺丰快递
Object
expresses
=
null
;
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"获取演出详情 -> time:"
+
(
currentTime
)
+
"毫秒"
);
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
KylinTicketVo
ticketVo
=
null
;
...
...
@@ -933,6 +938,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
}
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"巡演票数据 -> time:"
+
(
currentTime
)
+
"毫秒"
);
orderTicketVo
.
setIsTrueName
(
ticketVo
.
getIsTrueName
());
orderTicketVo
.
setNoticeImage
(
performanceVo
.
getNoticeImage
());
...
...
@@ -949,6 +956,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
else
{
orderTicketVo
.
setQrCode
(
""
);
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"获取二维码 -> time:"
+
(
currentTime
)
+
"毫秒"
);
// 数据脱敏
for
(
KylinOrderTicketEntitiesVo
item
:
kylinOrderTicketEntitiesVoList
)
{
...
...
@@ -959,6 +968,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
item
.
setEnterMobile
(
item
.
getEnterMobile
().
substring
(
0
,
3
)
+
"****"
+
item
.
getEnterMobile
().
substring
(
7
));
}
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"入场人加密 -> time:"
+
(
currentTime
)
+
"毫秒"
);
//计算 倒计时
Date
nowDate
=
DateUtil
.
parse
(
DateUtil
.
getNowTime
(),
"yyyy-MM-dd HH:mm:ss"
);
if
(
orderTicketVo
.
getStatus
().
equals
(
KylinTableStatusConst
.
ORDER_STATUS0
))
{
...
...
@@ -972,6 +983,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
else
{
vo
.
setRestTime
(
0L
);
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"获取倒计时 -> time:"
+
(
currentTime
)
+
"毫秒"
);
//快递
if
(
null
!=
expresses
)
{
vo
.
setExpress_number
(
""
);
//expresses.getNumber()
...
...
@@ -994,9 +1007,13 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
else
{
vo
.
setIsCanRefund
(
0
);
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"是否支持退款 -> time:"
+
(
currentTime
)
+
"毫秒"
);
List
<
KylinOrderRefundsOrderCodeVo
>
orderRefundsVoBaseList
=
new
ArrayList
<>();
List
<
KylinOrderRefundsVo
>
orderRefundsVoList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderId
);
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"获取退款详情 -> time:"
+
(
currentTime
)
+
"毫秒"
);
for
(
KylinOrderRefundsVo
item
:
orderRefundsVoList
)
{
KylinOrderRefundsOrderCodeVo
data
=
new
KylinOrderRefundsOrderCodeVo
();
data
.
setOrderRefundsId
(
item
.
getOrderRefundsId
());
...
...
@@ -1012,6 +1029,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
data
.
setStatus
(
item
.
getStatus
());
orderRefundListVos
.
add
(
data
);
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"循环退款详情 -> time:"
+
(
currentTime
)
+
"毫秒"
);
orderTicketVo
.
setOrderRefundListVos
(
orderRefundListVos
);
orderTicketVo
.
setOrderCode
(
orderTicketVo
.
getOrderCode
().
substring
(
orderTicketVo
.
getOrderCode
().
length
()
-
10
));
vo
.
setOrderRefundsVoList
(
orderRefundsVoBaseList
);
...
...
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