Commit 86d6a72c authored by libin's avatar libin

日历价格

parent ad229709
...@@ -51,8 +51,7 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric ...@@ -51,8 +51,7 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
List<VehicleModelHolidayPrice> vehicleModelHolidayPriceList = new ArrayList<>(); List<VehicleModelHolidayPrice> vehicleModelHolidayPriceList = new ArrayList<>();
VehicleModelHolidayPrice vehicleModelHolidayPrice; VehicleModelHolidayPrice vehicleModelHolidayPrice;
Date startDate = vehicleModelHolidayPriceSaveDTO.getStartDate(); LocalDate startLocaldate = DateUtils.dateToLocalDate(vehicleModelHolidayPriceSaveDTO.getStartDate());
LocalDate startLocaldate = DateUtils.dateToLocalDate(startDate);
LocalDate endLocaldate = DateUtils.dateToLocalDate(vehicleModelHolidayPriceSaveDTO.getEndDate()); LocalDate endLocaldate = DateUtils.dateToLocalDate(vehicleModelHolidayPriceSaveDTO.getEndDate());
while (startLocaldate.isBefore(endLocaldate) || startLocaldate.isEqual(endLocaldate)){ while (startLocaldate.isBefore(endLocaldate) || startLocaldate.isEqual(endLocaldate)){
vehicleModelHolidayPrice = new VehicleModelHolidayPrice(); vehicleModelHolidayPrice = new VehicleModelHolidayPrice();
...@@ -60,7 +59,7 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric ...@@ -60,7 +59,7 @@ public class VehicleModelHolidayPriceBiz extends BaseBiz<VehicleModelHolidayPric
Date date = DateUtils.localDateToDate(startLocaldate.atStartOfDay(ZoneId.systemDefault()).toLocalDate()); Date date = DateUtils.localDateToDate(startLocaldate.atStartOfDay(ZoneId.systemDefault()).toLocalDate());
vehicleModelHolidayPrice.setFestivalDay(date); vehicleModelHolidayPrice.setFestivalDay(date);
vehicleModelHolidayPriceList.add(vehicleModelHolidayPrice); vehicleModelHolidayPriceList.add(vehicleModelHolidayPrice);
startLocaldate.plusDays(1); startLocaldate = startLocaldate.plusDays(1);
} }
//编辑 //编辑
if (Objects.nonNull(vehicleModelHolidayPriceSaveDTO.getId())) { if (Objects.nonNull(vehicleModelHolidayPriceSaveDTO.getId())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment