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
86d6a72c
Commit
86d6a72c
authored
Oct 23, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历价格
parent
ad229709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
VehicleModelHolidayPriceBiz.java
...xfc/platform/vehicle/biz/VehicleModelHolidayPriceBiz.java
+2
-3
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleModelHolidayPriceBiz.java
View file @
86d6a72c
...
...
@@ -51,8 +51,7 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
List
<
VehicleModelHolidayPrice
>
vehicleModelHolidayPriceList
=
new
ArrayList
<>();
VehicleModelHolidayPrice
vehicleModelHolidayPrice
;
Date
startDate
=
vehicleModelHolidayPriceSaveDTO
.
getStartDate
();
LocalDate
startLocaldate
=
DateUtils
.
dateToLocalDate
(
startDate
);
LocalDate
startLocaldate
=
DateUtils
.
dateToLocalDate
(
vehicleModelHolidayPriceSaveDTO
.
getStartDate
());
LocalDate
endLocaldate
=
DateUtils
.
dateToLocalDate
(
vehicleModelHolidayPriceSaveDTO
.
getEndDate
());
while
(
startLocaldate
.
isBefore
(
endLocaldate
)
||
startLocaldate
.
isEqual
(
endLocaldate
)){
vehicleModelHolidayPrice
=
new
VehicleModelHolidayPrice
();
...
...
@@ -60,7 +59,7 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
Date
date
=
DateUtils
.
localDateToDate
(
startLocaldate
.
atStartOfDay
(
ZoneId
.
systemDefault
()).
toLocalDate
());
vehicleModelHolidayPrice
.
setFestivalDay
(
date
);
vehicleModelHolidayPriceList
.
add
(
vehicleModelHolidayPrice
);
startLocaldate
.
plusDays
(
1
);
startLocaldate
=
startLocaldate
.
plusDays
(
1
);
}
//编辑
if
(
Objects
.
nonNull
(
vehicleModelHolidayPriceSaveDTO
.
getId
()))
{
...
...
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