Commit 4fb58da6 authored by 周健威's avatar 周健威

修改租车列表新规则bug

parent 2e060b19
...@@ -1156,8 +1156,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR ...@@ -1156,8 +1156,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
List<String> notBookedDates = Lists.newArrayList(); List<String> notBookedDates = Lists.newArrayList();
if(StringUtils.isNotBlank(dto.getStartDate())&& if(StringUtils.isNotBlank(dto.getStartDate())&&
StringUtils.isNotBlank(dto.getEndDate())) { StringUtils.isNotBlank(dto.getEndDate())) {
notBookedDates = convertDatePeriod2List(dto.getStartDate(), // notBookedDates = convertDatePeriod2List(dto.getStartDate(),
dto.getEndDate()); // dto.getEndDate());
notBookedDates = convertDatePeriod2List(dto.getStartDateExtend(),
dto.getEndDateExtend());
} }
//若传入预定信息查询条件,则查询对应月份预定信息查询条件(不超过3个月) //若传入预定信息查询条件,则查询对应月份预定信息查询条件(不超过3个月)
......
...@@ -639,9 +639,9 @@ ...@@ -639,9 +639,9 @@
<!-- yearNo4Where 标识时间参数是否用于where条件 --> <!-- yearNo4Where 标识时间参数是否用于where条件 -->
<if test="startCompanyId != null and endCompanyId != null "> <if test="startCompanyId != null and endCompanyId != null ">
and ( and (
(abr.to_lift_company = null or abr.to_lift_company = #{startCompanyId}) (abr.to_lift_company is null or abr.to_lift_company = #{startCompanyId})
and and
(abr.to_return_company = null or abr.to_return_company = #{endCompanyId}) (abr.to_return_company is null or abr.to_return_company = #{endCompanyId})
) )
</if> </if>
<if test=" modelId != null "> <if test=" modelId != null ">
......
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