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
5c21b3c6
Commit
5c21b3c6
authored
Sep 03, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-price' into dev-tiande
parents
eaa946b8
78c516c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
VehicleController.java
...ava/com/xxfc/platform/vehicle/rest/VehicleController.java
+3
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleController.java
View file @
5c21b3c6
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.vehicle.rest;
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.vehicle.rest;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONException
;
import
com.alibaba.fastjson.JSONException
;
...
@@ -661,6 +662,8 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
...
@@ -661,6 +662,8 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
if
(
StrUtil
.
isNotBlank
(
priceStartDate
)
&&
StrUtil
.
isNotBlank
(
priceEndDate
))
{
if
(
StrUtil
.
isNotBlank
(
priceStartDate
)
&&
StrUtil
.
isNotBlank
(
priceEndDate
))
{
vehicleVO
.
setPriceDTOS
(
vehicleHolidayPriceInfoBiz
.
getSynthesizePrice
(
vehicleVO
.
getId
(),
priceStartDate
,
priceEndDate
,
null
,
vehicleVO
.
getSubordinateBranch
()));
vehicleVO
.
setPriceDTOS
(
vehicleHolidayPriceInfoBiz
.
getSynthesizePrice
(
vehicleVO
.
getId
(),
priceStartDate
,
priceEndDate
,
null
,
vehicleVO
.
getSubordinateBranch
()));
}
else
{
vehicleVO
.
setPriceDTOS
(
vehicleHolidayPriceInfoBiz
.
getSynthesizePrice
(
vehicleVO
.
getId
(),
DateUtil
.
today
(),
DateUtil
.
offsetDay
(
DateUtil
.
date
(),
7
).
toDateStr
(),
null
,
vehicleVO
.
getSubordinateBranch
()));
}
}
return
RestResponse
.
data
(
vehicleVO
);
return
RestResponse
.
data
(
vehicleVO
);
...
...
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