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
d2d4240e
Commit
d2d4240e
authored
Aug 28, 2020
by
unset
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-price' into dev-tiande
parents
41c2ee4e
c5ec3c1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
VehicleHolidayPriceInfoBiz.java
...xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
+3
-3
VehicleHolidayPriceInfoController.java
...tform/vehicle/rest/VehicleHolidayPriceInfoController.java
+2
-2
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
View file @
d2d4240e
...
@@ -74,7 +74,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -74,7 +74,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
vehicleList
=
vehicleBiz
.
getAllVehicleByCompanyId
(
vehicle
.
getSubordinateBranch
(),
null
);
vehicleList
=
vehicleBiz
.
getAllVehicleByCompanyId
(
vehicle
.
getSubordinateBranch
(),
null
);
}
}
if
(
vehicleList
==
null
||
vehicleList
.
size
()
<=
0
)
{
//单个车辆可用
if
(
vehicleList
==
null
||
vehicleList
.
size
()
<=
0
)
{
//单个车辆可用
for
(
String
date
:
getAllDate
(
vehicleHolidayPriceInfo
.
getStart
Date
(),
vehicleHolidayPriceInfo
.
getEndDat
e
()))
{
for
(
String
date
:
getAllDate
(
vehicleHolidayPriceInfo
.
getStart
Time
(),
vehicleHolidayPriceInfo
.
getEndTim
e
()))
{
vehicleHolidayPriceInfo
.
setFestivalDate
(
DateTime
.
parse
(
date
,
DATE_TIME_FORMATTER
).
toDate
());
vehicleHolidayPriceInfo
.
setFestivalDate
(
DateTime
.
parse
(
date
,
DATE_TIME_FORMATTER
).
toDate
());
VehicleHolidayPriceInfo
oldValue
=
getByVehicleId
(
vehicleHolidayPriceInfo
.
getVehicleId
(),
date
);
VehicleHolidayPriceInfo
oldValue
=
getByVehicleId
(
vehicleHolidayPriceInfo
.
getVehicleId
(),
date
);
if
(
oldValue
==
null
)
{
if
(
oldValue
==
null
)
{
...
@@ -89,7 +89,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -89,7 +89,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
}
else
{
}
else
{
vehicleList
.
parallelStream
().
forEach
(
vehicleInfo
->
{
vehicleList
.
parallelStream
().
forEach
(
vehicleInfo
->
{
if
(
vehicleInfo
!=
null
)
{
if
(
vehicleInfo
!=
null
)
{
for
(
String
date
:
getAllDate
(
vehicleHolidayPriceInfo
.
getStart
Date
(),
vehicleHolidayPriceInfo
.
getEndDat
e
()))
{
for
(
String
date
:
getAllDate
(
vehicleHolidayPriceInfo
.
getStart
Time
(),
vehicleHolidayPriceInfo
.
getEndTim
e
()))
{
VehicleHolidayPriceInfo
oldValue
=
getByVehicleId
(
vehicleInfo
.
getId
(),
date
);
VehicleHolidayPriceInfo
oldValue
=
getByVehicleId
(
vehicleInfo
.
getId
(),
date
);
vehicleHolidayPriceInfo
.
setFestivalDate
(
DateTime
.
parse
(
date
,
DATE_TIME_FORMATTER
).
toDate
());
vehicleHolidayPriceInfo
.
setFestivalDate
(
DateTime
.
parse
(
date
,
DATE_TIME_FORMATTER
).
toDate
());
vehicleHolidayPriceInfo
.
setVehicleId
(
vehicleInfo
.
getId
());
vehicleHolidayPriceInfo
.
setVehicleId
(
vehicleInfo
.
getId
());
...
@@ -125,7 +125,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -125,7 +125,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
List
<
VehicleHolidayPriceInfo
>
vehicleHolidayPriceInfoList
=
new
ArrayList
<>();
List
<
VehicleHolidayPriceInfo
>
vehicleHolidayPriceInfoList
=
new
ArrayList
<>();
if
(
list
.
size
()
>
0
)
{
if
(
list
.
size
()
>
0
)
{
for
(
VehicleHolidayPriceInfo
vehicleHolidayPriceInfo
:
list
)
{
for
(
VehicleHolidayPriceInfo
vehicleHolidayPriceInfo
:
list
)
{
vehicleHolidayPriceInfoList
.
addAll
(
getByVehicleIdAndDate
(
vehicleHolidayPriceInfo
.
getVehicleId
(),
vehicleHolidayPriceInfo
.
getStart
Date
(),
vehicleHolidayPriceInfo
.
getEndDat
e
()));
vehicleHolidayPriceInfoList
.
addAll
(
getByVehicleIdAndDate
(
vehicleHolidayPriceInfo
.
getVehicleId
(),
vehicleHolidayPriceInfo
.
getStart
Time
(),
vehicleHolidayPriceInfo
.
getEndTim
e
()));
}
}
}
}
return
ObjectRestResponse
.
succ
(
vehicleHolidayPriceInfoList
);
return
ObjectRestResponse
.
succ
(
vehicleHolidayPriceInfoList
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleHolidayPriceInfoController.java
View file @
d2d4240e
...
@@ -27,8 +27,8 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
...
@@ -27,8 +27,8 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
}
}
@GetMapping
(
value
=
"getByVehicleId"
)
@GetMapping
(
value
=
"getByVehicleId"
)
public
ObjectRestResponse
getByVehicleId
(
String
vehicleId
,
String
start
Date
,
String
endDat
e
)
{
public
ObjectRestResponse
getByVehicleId
(
String
vehicleId
,
String
start
Time
,
String
endTim
e
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
getByVehicleIdAndDate
(
vehicleId
,
start
Date
,
endDat
e
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
getByVehicleIdAndDate
(
vehicleId
,
start
Time
,
endTim
e
));
}
}
@GetMapping
(
value
=
"getByVehicleIdFeign"
)
@GetMapping
(
value
=
"getByVehicleIdFeign"
)
...
...
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