记得上下班打卡 | 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
6b60edd0
Commit
6b60edd0
authored
Jul 06, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断 订单详情是否可退款
parent
7243132f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+22
-22
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 @
6b60edd0
...
...
@@ -196,39 +196,39 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
Integer
orderExpressStatus
=
dataUtils
.
getOrderExpressInfo
(
orderTicketVo
.
getOrderTicketsId
());
vo
.
setExpressStatus
(
orderExpressStatus
);
if
(
null
!=
performanceVo
.
getIsCanRefund
()
&&
performanceVo
.
getIsCanRefund
()
==
1
)
{
LocalDateTime
refundOpenDate
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceVo
.
getRefundOpenTime
());
LocalDateTime
refundCloseDate
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceVo
.
getRefundCloseTime
());
if
(
LocalDateTime
.
now
().
isAfter
(
refundOpenDate
)
&&
LocalDateTime
.
now
().
isBefore
(
refundCloseDate
)
&&
orderTicketVo
.
getExpressAddress
().
trim
().
equals
(
""
)
&&
ticketVo
.
getCounts
()==
1
)
{
vo
.
setIsCanRefund
(
1
);
}
else
{
vo
.
setIsCanRefund
(
0
);
}
}
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
());
data
.
setOrderRefundCode
(
item
.
getOrderRefundCode
());
data
.
setStatus
(
item
.
getStatus
());
}
List
<
OrderRefundListVo
>
orderRefundListVos
=
new
ArrayList
<>();
BigDecimal
lockPrice
=
new
BigDecimal
(
"0.00"
);
for
(
KylinOrderRefundsVo
item
:
orderRefundsVoList
)
{
OrderRefundListVo
data
=
new
OrderRefundListVo
();
data
.
setOrderRefundCode
(
item
.
getOrderRefundCode
().
substring
(
item
.
getOrderRefundCode
().
length
()
-
10
));
data
.
setOrderRefundsId
(
item
.
getOrderRefundsId
());
data
.
setStatus
(
item
.
getStatus
());
if
(
item
.
getStatus
().
equals
(
0
)
||
item
.
getStatus
().
equals
(
1
)
||
item
.
getStatus
().
equals
(
7
)
||
item
.
getStatus
().
equals
(
3
)
||
item
.
getStatus
().
equals
(
4
))
{
lockPrice
=
lockPrice
.
add
(
item
.
getPrice
());
}
orderRefundListVos
.
add
(
data
);
}
if
(
null
!=
performanceVo
.
getIsCanRefund
()
&&
performanceVo
.
getIsCanRefund
()
==
1
)
{
LocalDateTime
refundOpenDate
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceVo
.
getRefundOpenTime
());
LocalDateTime
refundCloseDate
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceVo
.
getRefundCloseTime
());
if
(
LocalDateTime
.
now
().
isAfter
(
refundOpenDate
)
&&
LocalDateTime
.
now
().
isBefore
(
refundCloseDate
)
&&
orderTicketVo
.
getExpressAddress
().
trim
().
equals
(
""
)
&&
ticketVo
.
getCounts
()
==
1
&&
lockPrice
.
compareTo
(
orderTicketVo
.
getPriceActual
())
==
0
)
{
vo
.
setIsCanRefund
(
1
);
}
else
{
vo
.
setIsCanRefund
(
0
);
}
}
else
{
vo
.
setIsCanRefund
(
0
);
}
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"是否支持退款 -> time:"
+
(
currentTime
)
+
"毫秒"
);
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"循环退款详情 -> time:"
+
(
currentTime
)
+
"毫秒"
);
orderTicketVo
.
setOrderRefundListVos
(
orderRefundListVos
);
...
...
@@ -361,7 +361,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
if
(
null
!=
performanceVo
.
getIsCanRefund
()
&&
performanceVo
.
getIsCanRefund
()
==
1
)
{
LocalDateTime
refundOpenDate
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceVo
.
getRefundOpenTime
());
LocalDateTime
refundCloseDate
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceVo
.
getRefundCloseTime
());
if
(
LocalDateTime
.
now
().
isAfter
(
refundOpenDate
)
&&
LocalDateTime
.
now
().
isBefore
(
refundCloseDate
)
&&
orderTicketVo
.
getExpressAddress
().
trim
().
equals
(
""
)
&&
ticketVo
.
getCounts
()
==
1
)
{
if
(
LocalDateTime
.
now
().
isAfter
(
refundOpenDate
)
&&
LocalDateTime
.
now
().
isBefore
(
refundCloseDate
)
&&
orderTicketVo
.
getExpressAddress
().
trim
().
equals
(
""
)
&&
ticketVo
.
getCounts
()
==
1
)
{
}
else
{
return
"暂不支持退款"
;
...
...
@@ -381,7 +381,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
BigDecimal
refundSinglePrice
=
dataUtils
.
getCanRefundOrderEntitiesPrice
(
orderTicketVo
,
kylinOrderRefundsVoBaseList
,
orderTicketEntitiesId
);
if
(
refundSinglePrice
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
if
(
refundSinglePrice
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
return
"申请金额不得小于0"
;
}
Map
token
=
CurrentUtil
.
getTokenClaims
();
...
...
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