Commit cd814491 by 杨林龙

添加试驾车辆时 增加查询参数

1 parent 178b3920
...@@ -31,4 +31,19 @@ public class TestVehicleVo { ...@@ -31,4 +31,19 @@ public class TestVehicleVo {
* 1有源 0无源 * 1有源 0无源
*/ */
private Integer source; private Integer source;
/**
* 车辆开始购买时间
*/
private String buyDateStart;
/**
* 车辆结束购买时间
*/
private String buyDateEnd;
/**
* 特约店名
*/
private String shopName;
} }
...@@ -358,6 +358,7 @@ ...@@ -358,6 +358,7 @@
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_device td on td.sn = tvd.sn left join t_device td on td.sn = tvd.sn
left join t_user tu on tu.id = tv.created_by
where tv.del_flag = 0 where tv.del_flag = 0
and tvd.trial_type = 0 and tvd.trial_type = 0
and td.del_flag = 0 and td.del_flag = 0
...@@ -370,5 +371,14 @@ ...@@ -370,5 +371,14 @@
<if test="vin != null and vin !=''"> <if test="vin != null and vin !=''">
and tv.vin = #{vin} and tv.vin = #{vin}
</if> </if>
<if test="buyDateStart != null and buyDateStart !=''">
and tv.buy_date &gt;= #{buyDateStart}
</if>
<if test="buyDateEnd != null and buyDateEnd !=''">
and tv.buy_date &lt;= #{buyDateEnd}
</if>
<if test="shopName != null and shopName !=''">
and tu.username = #{shopName}
</if>
</select> </select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!