Commit b0f1c8e0 authored by jiaorz's avatar jiaorz

新增押金记录,修改租车核销

parent ff53a8c9
...@@ -377,22 +377,22 @@ ...@@ -377,22 +377,22 @@
select v1.* from vehicle_book_record v1 select v1.* from vehicle_book_record v1
left join vehicle v2 on v2.id = v1.vehicle_id left join vehicle v2 on v2.id = v1.vehicle_id
<where> <where>
<if test="startTime != null"> <if test="startTime != null">
and v1.create_time between #{startTime} and #{endTime} and v1.create_time between #{startTime} and #{endTime}
</if> </if>
<if test="numberPlate != null"> <if test="numberPlate != null || numberPlate != ''">
and v2.number_plate = #{numberPlate} and v2.number_plate = #{numberPlate}
</if> </if>
<if test="status != null"> <if test="status != null">
and v2.status = #{status} and v2.status = #{status}
</if> </if>
<if test="subordinateBranch != null"> <if test="subordinateBranch != null">
and v2.subordinate_branch = #{subordinateBranch} and v2.subordinate_branch = #{subordinateBranch}
</if> </if>
<if test="parkBranchCompanyId != null"> <if test="parkBranchCompanyId != null">
and v2.park_branch_company_id = #{parkBranchCompanyId} and v2.park_branch_company_id = #{parkBranchCompanyId}
</if> </if>
</where> </where>
order By v1.create_time DESC order By v1.create_time DESC
</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