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 598a4f79
authored
Sep 13, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化设备类型对应字段
1 parent
ec07ccab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
src/main/resources/mapper/VehicleMapper.xml
src/main/resources/mapper/VehicleMapper.xml
View file @
598a4f7
...
...
@@ -68,7 +68,7 @@
<result
column=
"owner_name"
jdbcType=
"VARCHAR"
property=
"ownerName"
/>
<result
column=
"vin"
jdbcType=
"VARCHAR"
property=
"vin"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"
device_typ
e"
jdbcType=
"INTEGER"
property=
"deviceType"
/>
<result
column=
"
sourc
e"
jdbcType=
"INTEGER"
property=
"deviceType"
/>
<result
column=
"model_name"
jdbcType=
"VARCHAR"
property=
"modelName"
/>
<result
column=
"vehicle_type"
jdbcType=
"INTEGER"
property=
"vehicleType"
/>
<result
column=
"vehicle_usages"
jdbcType=
"INTEGER"
property=
"vehicleUsages"
/>
...
...
@@ -82,7 +82,7 @@
<result
column=
"owner_name"
jdbcType=
"VARCHAR"
property=
"ownerName"
/>
<result
column=
"vin"
jdbcType=
"VARCHAR"
property=
"vin"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"
device_typ
e"
jdbcType=
"INTEGER"
property=
"deviceType"
/>
<result
column=
"
sourc
e"
jdbcType=
"INTEGER"
property=
"deviceType"
/>
<result
column=
"model_name"
jdbcType=
"VARCHAR"
property=
"modelName"
/>
<result
column=
"vehicle_type"
jdbcType=
"INTEGER"
property=
"vehicleType"
/>
<result
column=
"vehicle_usages"
jdbcType=
"VARCHAR"
property=
"vehicleUsages"
/>
...
...
@@ -290,9 +290,14 @@
resultMap=
"VehicleInfoMap"
>
select tv.id ,
tvd.id vdId ,
tv.workorder_id ,tv.owner_name ,tv.vin ,td.sn ,
td.device_type ,tv.model_name ,tv.vehicle_type ,
tv.vehicle_usages ,td.activate_time,
tv.workorder_id ,
tv.owner_name ,
tv.vin ,td.sn ,
td.source ,
tv.model_name ,
tv.vehicle_type ,
tv.vehicle_usages ,
td.activate_time ,
ddf.`status` AS freqStatus
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
...
...
@@ -315,7 +320,7 @@
and left(td.activate_time,10)
<
= #{activateTimeEnd}
</if>
<if
test=
"deviceType != null"
>
and td.
device_typ
e = #{deviceType}
and td.
sourc
e = #{deviceType}
</if>
<if
test=
"vehicleType != null"
>
and tv.vehicle_type = #{vehicleType}
...
...
@@ -327,9 +332,16 @@
<select
id=
"exportVehicleInfo"
parameterType=
"cn.com.glsx.admin.modules.model.param.VehicleInfoSearch"
resultMap=
"VehicleInfoReportExportMap"
>
select tv.id ,tv.workorder_id ,tv.owner_name ,tv.vin ,td.sn ,
td.device_type ,tv.model_name ,tv.vehicle_type ,
tv.vehicle_usages ,td.activate_time,
select tv.id ,
tv.workorder_id ,
tv.owner_name ,
tv.vin ,
td.sn ,
td.source ,
tv.model_name ,
tv.vehicle_type ,
tv.vehicle_usages ,
td.activate_time ,
ddf.`status` AS freqStatus
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
...
...
@@ -352,7 +364,7 @@
and left(td.activate_time,10)
<
= #{activateTimeEnd}
</if>
<if
test=
"deviceType != null"
>
and td.
device_typ
e = #{deviceType}
and td.
sourc
e = #{deviceType}
</if>
<if
test=
"vehicleType != null"
>
and tv.vehicle_type = #{vehicleType}
...
...
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