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 9bf8b85e
authored
Dec 27, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化最后定位报表的设备类型展示
1 parent
a5630770
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/model/export/FinalPositioningExport.java
src/main/java/cn/com/glsx/admin/modules/model/export/OfflineExport.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/export/FinalPositioningExport.java
View file @
9bf8b85
...
@@ -44,6 +44,17 @@ public class FinalPositioningExport {
...
@@ -44,6 +44,17 @@ public class FinalPositioningExport {
private
String
sn
;
private
String
sn
;
/**
/**
* 设备类型 1 有线 0无线
*/
private
Integer
deviceType
;
/**
* 设备类型字符串 1 有线 0无线
*/
@ExcelProperty
(
"设备型号"
)
private
String
deviceTypeStr
;
/**
* 激活时间
* 激活时间
*/
*/
@ExcelProperty
(
"激活时间"
)
@ExcelProperty
(
"激活时间"
)
...
...
src/main/java/cn/com/glsx/admin/modules/model/export/OfflineExport.java
View file @
9bf8b85
...
@@ -39,7 +39,7 @@ public class OfflineExport {
...
@@ -39,7 +39,7 @@ public class OfflineExport {
private
String
vin
;
private
String
vin
;
/**
/**
* 设备类型
* 设备类型
8:Gps 1:OBD
*/
*/
private
Integer
deviceType
;
private
Integer
deviceType
;
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
9bf8b85
...
@@ -525,7 +525,8 @@
...
@@ -525,7 +525,8 @@
tvd.created_date as activeDate,
tvd.created_date as activeDate,
tdl.last_gps_time as finalGpsTime,
tdl.last_gps_time as finalGpsTime,
tdl.last_bs_time as finalBsTime,
tdl.last_bs_time as finalBsTime,
td.source as `source`
td.source as `source`,
td.device_type as deviceType
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
...
...
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