Commit 1ff3c65d authored by jiaorz's avatar jiaorz

添加根据预定记录ID获取出行记录接口

parent 0f53c623
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<if test="insuranceCompany !=null"> <if test="insuranceCompany !=null">
and v.insurance_company = #{insuranceCompany} and v.insurance_company = #{insuranceCompany}
</if> </if>
<if test="belongToName !=null"> <if test="belongToName !=null and belongToName != ''">
and v.belong_to_name = like concat('%',#{belongToName},'%') and v.belong_to_name = like concat('%',#{belongToName},'%')
</if> </if>
<if test="vin !=null and vin != ''"> <if test="vin !=null and vin != ''">
...@@ -215,8 +215,8 @@ ...@@ -215,8 +215,8 @@
v.receive_time, v.receive_time,
v.update_time, v.update_time,
v.model_id, v.model_id,
MAX(v2.update_time),
v.mileage_last_update as mileage, v.mileage_last_update as mileage,
MAX(v2.update_time)
<if test=" yearMonthAndParam !=null "> <if test=" yearMonthAndParam !=null ">
,vbi.booked_date ,vbi.booked_date
</if> </if>
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
<if test="insuranceCompany !=null"> <if test="insuranceCompany !=null">
and v.insurance_company = #{insuranceCompany} and v.insurance_company = #{insuranceCompany}
</if> </if>
<if test="belongToName !=null"> <if test="belongToName !=null and belongToName != ''">
and v.belong_to_name = like concat('%',#{belongToName},'%') and v.belong_to_name = like concat('%',#{belongToName},'%')
</if> </if>
<if test="vin !=null and vin != ''"> <if test="vin !=null and vin != ''">
......
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