Commit d3aae091 authored by 周健威's avatar 周健威

修改bug

parent e42d1e74
...@@ -1217,10 +1217,15 @@ ...@@ -1217,10 +1217,15 @@
</if> </if>
<where> <where>
<if test="timeUse != null and timeUse == true"> <if test="timeUse != null and timeUse == true">
and (vut.vehicle_id is null or (
(#{bookStartDateTimestamp} &gt; vut.start_time and #{bookEndDateTimestamp} &lt; vut.end_time)
<if test="startCompanyId != null and endCompanyId != null"> <if test="startCompanyId != null and endCompanyId != null">
and (vut.company_id = #{startCompanyId} and vut.company_id = #{endCompanyId}) and vut.company_id = #{startCompanyId} and vut.company_id = #{endCompanyId}
</if> </if>
and (vut.vehicle_id is null or (#{bookStartDateTimestamp} &gt; vut.start_time and #{bookEndDateTimestamp} &lt; vut.end_time) )
) )
</if> </if>
<!-- 若需根据预定日期条件查询,针对换为位操作 --> <!-- 若需根据预定日期条件查询,针对换为位操作 -->
<!-- yearNo4Where 标识时间参数是否用于where条件 --> <!-- yearNo4Where 标识时间参数是否用于where条件 -->
......
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