Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
af55293f
Commit
af55293f
authored
Sep 20, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分bug
parent
7a9269d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+13
-11
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
af55293f
...
...
@@ -294,18 +294,20 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> {
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
"违约金( ¥"
);
//延期的天数, 延期违约金是延期天数*200%
int
usedDay
=
getDaysBetweenDateTime
(
endTime
,
nowTime
);
int
extraUsedDay
=
getDaysBetweenDateTimeHasStartEnd
(
endTime
,
nowTime
)
-
1
;
if
(
extraUsedDay
>
0
)
{
stringBuilder
.
append
(
amount
);
stringBuilder
.
append
(
" x "
);
stringBuilder
.
append
(
u
sedDay
);
stringBuilder
.
append
(
extraU
sedDay
);
stringBuilder
.
append
(
"(天)"
);
stringBuilder
.
append
(
" x 2"
);
BigDecimal
cost
=
amount
.
multiply
(
new
BigDecimal
(
usedDay
)).
multiply
(
new
BigDecimal
(
2
));
BigDecimal
cost
=
amount
.
multiply
(
new
BigDecimal
(
extraUsedDay
+
""
)).
multiply
(
new
BigDecimal
(
2
+
""
));
stringBuilder
.
append
(
" = "
);
stringBuilder
.
append
(
cost
);
stringBuilder
.
append
(
"元"
);
initDedDetail
(
dedDetailDTO
,
OrderViolateEnum
.
AFTER
.
getCode
(),
cost
,
stringBuilder
);
}
}
orderPageVO
.
setDedDetailDTO
(
JSONObject
.
toJSONString
(
dedDetailDTO
));
}
public
void
initDedDetail
(
DedDetailDTO
dedDetailDTO
,
Integer
type
,
BigDecimal
cost
,
StringBuilder
stringBuilder
)
{
...
...
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