Commit 7e46ea87 authored by libin's avatar libin

车型日历

parent 7be3c65d
......@@ -270,12 +270,12 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr
break;
default:
break;
}
}
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);
vehicleModelCalendarPriceVos.add(vehicleModelCalendarPriceDTO);
}
......@@ -295,6 +295,7 @@ public class VehicleModelCalendarPriceBiz extends BaseBiz<VehicleModelCalendarPr
Example.Criteria criteria = example.createCriteria();
criteria.andEqualTo("isDel", 0);
criteria.andEqualTo("vehicleModelId", vehicleModelId);
criteria.orIsNull("vehicleModelId");
criteria.andBetween("vehicleModelDay", final_startDate, final_endDate);
List<VehicleModelCalendarPrice> vehicleModelCalendarPrices = mapper.selectByExample(example);
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