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
f02a9ced
Commit
f02a9ced
authored
Nov 14, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单明细bug
parent
44747221
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
VehicleItemDTO.java
...va/com/xxfc/platform/order/pojo/order/VehicleItemDTO.java
+7
-4
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/order/VehicleItemDTO.java
View file @
f02a9ced
...
...
@@ -113,8 +113,11 @@ public class VehicleItemDTO extends OrderItem {
}
BigDecimal
usedAmount
=
BigDecimal
.
ZERO
;
for
(
VMCalendarPriceCostDTO
vmcpcd
:
vmcpds
)
{
usedAmount
.
add
(
vmcpcd
.
getPrice
());
// for(VMCalendarPriceCostDTO vmcpcd : vmcpds) {
// usedAmount.add(vmcpcd.getPrice());
// }
for
(
int
i
=
0
;
i
<
useDays
;
i
++)
{
usedAmount
=
usedAmount
.
add
(
vmcpds
.
get
(
i
).
getPrice
());
}
return
usedAmount
;
}
...
...
@@ -133,11 +136,11 @@ public class VehicleItemDTO extends OrderItem {
BigDecimal
freeAmount
=
BigDecimal
.
ZERO
;
if
(
null
!=
offsetDay
)
{
for
(
int
i
=
0
;
i
<
offsetDay
;
i
++)
{
freeAmount
.
add
(
vmcpds
.
get
(
i
).
getFreeAmount
());
freeAmount
=
freeAmount
.
add
(
vmcpds
.
get
(
i
).
getFreeAmount
());
}
}
else
{
for
(
VMCalendarPriceCostDTO
vmcpcd
:
vmcpds
)
{
freeAmount
.
add
(
vmcpcd
.
getFreeAmount
());
freeAmount
=
freeAmount
.
add
(
vmcpcd
.
getFreeAmount
());
}
}
return
freeAmount
;
...
...
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