Commit 7e46ea87 authored by libin's avatar libin

车型日历

parent 7be3c65d
...@@ -273,9 +273,9 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr ...@@ -273,9 +273,9 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr
} }
free_days = vehicleModelCalendarPrice.getFreeDays(); free_days = vehicleModelCalendarPrice.getFreeDays();
} }
}
vehicleModelCalendarPriceDTO.setPrice(vehicle_price); vehicleModelCalendarPriceDTO.setPrice(vehicle_price);
vehicleModelCalendarPriceDTO.setFreeDays(free_days); vehicleModelCalendarPriceDTO.setFreeDays(free_days);
}
final_startLocalDate = final_startLocalDate.plusDays(1); final_startLocalDate = final_startLocalDate.plusDays(1);
vehicleModelCalendarPriceVos.add(vehicleModelCalendarPriceDTO); vehicleModelCalendarPriceVos.add(vehicleModelCalendarPriceDTO);
} }
...@@ -295,6 +295,7 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr ...@@ -295,6 +295,7 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr
Example.Criteria criteria = example.createCriteria(); Example.Criteria criteria = example.createCriteria();
criteria.andEqualTo("isDel", 0); criteria.andEqualTo("isDel", 0);
criteria.andEqualTo("vehicleModelId", vehicleModelId); criteria.andEqualTo("vehicleModelId", vehicleModelId);
criteria.orIsNull("vehicleModelId");
criteria.andBetween("vehicleModelDay", final_startDate, final_endDate); criteria.andBetween("vehicleModelDay", final_startDate, final_endDate);
List<VehicleModelCalendarPrice> vehicleModelCalendarPrices = mapper.selectByExample(example); List<VehicleModelCalendarPrice> vehicleModelCalendarPrices = mapper.selectByExample(example);
return CollectionUtils.isEmpty(vehicleModelCalendarPrices) ? Collections.EMPTY_LIST : vehicleModelCalendarPrices; return CollectionUtils.isEmpty(vehicleModelCalendarPrices) ? Collections.EMPTY_LIST : vehicleModelCalendarPrices;
......
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