记得上下班打卡 | 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
011452ea
Commit
011452ea
authored
Aug 31, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
4219ca8c
Changes
1
Show 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 @
011452ea
...
@@ -422,12 +422,31 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -422,12 +422,31 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
if
(
useStartD15Before
.
isBefore
(
nowTime
))
{
// 15天以前的时间大于当前时间 距离演出开始日期>15天
if
(
useStartD15Before
.
isBefore
(
nowTime
))
{
// 15天以前的时间大于当前时间 距离演出开始日期>15天
chargesNum
=
0.1f
;
chargesNum
=
0.1f
;
log
.
info
(
"距离演出开始日期>15天"
);
log
.
info
(
"票种演出开始时间 {}"
,
useStartD
);
log
.
info
(
"15天之前的时间 {}"
,
useStartD15Before
);
log
.
info
(
"3天之前的时间 {}"
,
useStartD3Before
);
log
.
info
(
"当前时间 {}"
,
nowTime
);
log
.
info
(
"手续费比例 {}"
,
chargesNum
);
}
else
if
(
useStartD3Before
.
isBefore
(
nowTime
))
{
// 3天以前的时间大于当前时间 距离演出开始日期>3天-15天 含15天
}
else
if
(
useStartD3Before
.
isBefore
(
nowTime
))
{
// 3天以前的时间大于当前时间 距离演出开始日期>3天-15天 含15天
chargesNum
=
0.5f
;
chargesNum
=
0.5f
;
log
.
info
(
"距离演出开始日期3-15天"
);
log
.
info
(
"票种演出开始时间 {}"
,
useStartD
);
log
.
info
(
"15天之前的时间 {}"
,
useStartD15Before
);
log
.
info
(
"3天之前的时间 {}"
,
useStartD3Before
);
log
.
info
(
"当前时间 {}"
,
nowTime
);
log
.
info
(
"手续费比例 {}"
,
chargesNum
);
}
else
{
// 三天以内 <=3
}
else
{
// 三天以内 <=3
log
.
info
(
"距离演出开始日期<=3"
);
log
.
info
(
"票种演出开始时间 {}"
,
useStartD
);
log
.
info
(
"15天之前的时间 {}"
,
useStartD15Before
);
log
.
info
(
"3天之前的时间 {}"
,
useStartD3Before
);
log
.
info
(
"当前时间 {}"
,
nowTime
);
log
.
info
(
"手续费比例 {}"
,
chargesNum
);
return
"票种距离演出开始日期不大于3天,不支持退票"
;
return
"票种距离演出开始日期不大于3天,不支持退票"
;
}
}
refundSinglePrice
=
refundSinglePrice
.
subtract
(
refundSinglePrice
.
multiply
(
BigDecimal
.
valueOf
(
chargesNum
)));
refundSinglePrice
=
refundSinglePrice
.
subtract
(
refundSinglePrice
.
multiply
(
BigDecimal
.
valueOf
(
chargesNum
)));
log
.
info
(
"去除手续费申请金额 {}"
,
refundSinglePrice
);
if
(
refundSinglePrice
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
if
(
refundSinglePrice
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
return
"去除手续费申请金额不得小于0"
;
return
"去除手续费申请金额不得小于0"
;
}
}
...
...
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