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
cb14c891
Commit
cb14c891
authored
Nov 15, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'holiday-price' into dev
parents
7f5a996c
de58a06e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
VehicleItemDTO.java
...va/com/xxfc/platform/order/pojo/order/VehicleItemDTO.java
+3
-6
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/order/VehicleItemDTO.java
View file @
cb14c891
...
...
@@ -105,17 +105,14 @@ public class VehicleItemDTO extends OrderItem {
public
BigDecimal
getUsedAmount
(
Integer
useDays
)
{
List
<
VMCalendarPriceCostDTO
>
vmcpds
=
getVehicleDetail
();
if
(
CollUtil
.
isEmpty
(
vmcpds
)){
if
(
useDays
>
getTotalNum
())
{
useDays
=
getTotalNum
();
}
if
(
CollUtil
.
isEmpty
(
vmcpds
)){
return
getUnitPrice
().
multiply
(
new
BigDecimal
(
useDays
+
""
));
}
BigDecimal
usedAmount
=
BigDecimal
.
ZERO
;
// for(VMCalendarPriceCostDTO vmcpcd : vmcpds) {
// usedAmount.add(vmcpcd.getPrice());
// }
for
(
int
i
=
0
;
i
<
useDays
;
i
++)
{
usedAmount
=
usedAmount
.
add
(
vmcpds
.
get
(
i
).
getPrice
());
}
...
...
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