Commit 7dac1ede authored by jiaorz's avatar jiaorz

修改提前还车逻辑

parent 26bac4c5
...@@ -18,6 +18,11 @@ public class VehicleBookRecordQueryVo extends PageParam { ...@@ -18,6 +18,11 @@ public class VehicleBookRecordQueryVo extends PageParam {
*/ */
private String numberPlate; private String numberPlate;
/**
* 车牌和车辆编号的关键字
*/
private String keywords;
/** /**
* 所属分支机构(id) * 所属分支机构(id)
*/ */
......
...@@ -478,6 +478,9 @@ ...@@ -478,6 +478,9 @@
<if test="bookType != null"> <if test="bookType != null">
and v1.book_type = #{bookType} and v1.book_type = #{bookType}
</if> </if>
<if test="keywords != null and keywords != ''">
and v3.code like concat("%", #{keywords},"%") or v3.number_plate like concat("%", #{keywords},"%")
</if>
<if test="companyIds != null and companyIds.size > 0"> <if test="companyIds != null and companyIds.size > 0">
and (v1.lift_company in and (v1.lift_company in
<foreach collection="companyIds" item="id" open="(" separator="," close=")"> <foreach collection="companyIds" item="id" open="(" separator="," close=")">
......
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