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

修改租车列表显示bug

parent 347180a9
...@@ -54,8 +54,8 @@ public class UsableVeicleDTO extends PageParam { ...@@ -54,8 +54,8 @@ public class UsableVeicleDTO extends PageParam {
@ApiModelProperty(hidden = true) @ApiModelProperty(hidden = true)
Boolean yearNo4Where; Boolean yearNo4Where;
// @ApiModelProperty(hidden = true) @ApiModelProperty(hidden = true)
// Integer withoutRecordWhere = 1; Integer withoutRecordWhere = 1;
public void setStartDateTamp(Long startDateTamp) { public void setStartDateTamp(Long startDateTamp) {
this.startDateTamp = startDateTamp; this.startDateTamp = startDateTamp;
......
...@@ -528,13 +528,10 @@ ...@@ -528,13 +528,10 @@
</foreach> </foreach>
<!-- 租车列表 不过滤前后预约记录不符的车辆 但是合并标示车型是否有车 即 hasVehicle--> <!-- 租车列表 不过滤前后预约记录不符的车辆 但是合并标示车型是否有车 即 hasVehicle-->
<if test="withoutRecordWhere != null and withoutRecordWhere = 1 and startCompanyId != null and endCompanyId != null "> <if test="withoutRecordWhere != null and withoutRecordWhere = 1 and startCompanyId != null and endCompanyId != null ">
and if(( and (abr.to_lift_company is null or abr.to_lift_company = #{startCompanyId})
(abr.to_lift_company is null or abr.to_lift_company = #{startCompanyId}) and (abr.to_return_company is null or abr.to_return_company = #{endCompanyId})
and
(abr.to_return_company is null or abr.to_return_company = #{endCompanyId})
) = true, 1, 0)
</if> </if>
) )
)as hasVehicle )as hasVehicle
</if> </if>
<if test="lon != null and lat != null"> <if test="lon != null and lat != null">
...@@ -597,8 +594,7 @@ ...@@ -597,8 +594,7 @@
<if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"> <if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true">
hasVehicle desc, hasVehicle desc,
</if> </if>
distance asc, distance asc, model_id asc
model_id asc
</if> </if>
</select> </select>
......
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