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
56b07609
Commit
56b07609
authored
Dec 05, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-delay-add' into dev
parents
a9facd6a
e0acbc00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
OrderDelayBiz.java
...java/com/xxfc/platform/order/biz/inner/OrderDelayBiz.java
+7
-1
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderDelayBiz.java
View file @
56b07609
...
@@ -128,8 +128,14 @@ public class OrderDelayBiz {
...
@@ -128,8 +128,14 @@ public class OrderDelayBiz {
List
<
VMCalendarPriceCostDTO
>
delayAmountList
;
List
<
VMCalendarPriceCostDTO
>
delayAmountList
;
if
(
delayAddDays
>
0
)
{
if
(
delayAddDays
>
0
)
{
VehicleItemDTO
vehicleItemDTO
=
BeanUtil
.
toBean
(
orderItemBiz
.
selectOne
(
new
OrderItem
(){{
setType
(
ItemTypeEnum
.
VEHICLE_MODEL
.
getCode
());
setOrderId
(
orderPageVO
.
getId
());
}}),
VehicleItemDTO
.
class
);
List
<
VMCalendarPriceCostDTO
>
vmcpcds
=
vehicleItemDTO
.
getVehicleDetail
();
//获得延期天数费用
//获得延期天数费用
delayAmountList
=
orderItemBiz
.
getOverAmountList
(
DateUtil
.
date
(
orvd
.
getEndTime
()
),
delayAddDays
,
orvd
.
getModelId
(),
orderPageVO
.
getUserId
());
delayAmountList
=
orderItemBiz
.
getOverAmountList
(
vmcpcds
.
get
(
vmcpcds
.
size
()
-
1
).
getDate
(
),
delayAddDays
,
orvd
.
getModelId
(),
orderPageVO
.
getUserId
());
//处理免费天数和免费金额
//处理免费天数和免费金额
delayAmountList
.
parallelStream
().
forEach
(
vmcpcd
->
{
delayAmountList
.
parallelStream
().
forEach
(
vmcpcd
->
{
vmcpcd
.
setValidFreeDays
(
vmcpcd
.
getFreeDays
());
vmcpcd
.
setValidFreeDays
(
vmcpcd
.
getFreeDays
());
...
...
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