Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd814491
authored
Sep 06, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加试驾车辆时 增加查询参数
1 parent
178b3920
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
src/main/java/cn/com/glsx/admin/modules/model/TestVehicleVo.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/TestVehicleVo.java
View file @
cd81449
...
@@ -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
;
}
}
src/main/resources/mapper/VehicleMapper.xml
View file @
cd81449
...
@@ -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
>
= #{buyDateStart}
</if>
<if
test=
"buyDateEnd != null and buyDateEnd !=''"
>
and tv.buy_date
<
= #{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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment