Commit 042b8003 authored by libin's avatar libin

Merge branch 'holiday-price' into base-modify

parents 0b1c3c3c 7e46ea87
...@@ -270,12 +270,12 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr ...@@ -270,12 +270,12 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr
break; break;
default: default:
break; break;
} }
free_days = vehicleModelCalendarPrice.getFreeDays(); free_days = vehicleModelCalendarPrice.getFreeDays();
} }
vehicleModelCalendarPriceDTO.setPrice(vehicle_price);
vehicleModelCalendarPriceDTO.setFreeDays(free_days);
} }
vehicleModelCalendarPriceDTO.setPrice(vehicle_price);
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