Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
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 27ab41e0
authored
Aug 05, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加车牌号返回
1 parent
39759268
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
src/main/java/cn/com/glsx/app/modules/model/domain/DevicePowerDO.java
src/main/java/cn/com/glsx/app/modules/model/view/LowPowerVO.java
src/main/resources/mapper/DevicePowerMapper.xml
src/main/java/cn/com/glsx/app/modules/model/domain/DevicePowerDO.java
View file @
27ab41e
...
@@ -41,6 +41,11 @@ public class DevicePowerDO implements Serializable {
...
@@ -41,6 +41,11 @@ public class DevicePowerDO implements Serializable {
private
String
vehicleId
;
private
String
vehicleId
;
/**
/**
* 车牌号
*/
private
String
licensePlate
;
/**
* 当前电量
* 当前电量
*/
*/
private
Integer
soc
;
private
Integer
soc
;
...
...
src/main/java/cn/com/glsx/app/modules/model/view/LowPowerVO.java
View file @
27ab41e
...
@@ -48,4 +48,10 @@ public class LowPowerVO implements Serializable {
...
@@ -48,4 +48,10 @@ public class LowPowerVO implements Serializable {
*/
*/
@ApiModelProperty
(
"车辆ID"
)
@ApiModelProperty
(
"车辆ID"
)
private
Long
vehicleId
;
private
Long
vehicleId
;
/**
* 车牌号
*/
@ApiModelProperty
(
"车牌号"
)
private
String
licensePlate
;
}
}
src/main/resources/mapper/DevicePowerMapper.xml
View file @
27ab41e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<result
column=
"owner_name"
jdbcType=
"TINYINT"
property=
"ownerName"
/>
<result
column=
"owner_name"
jdbcType=
"TINYINT"
property=
"ownerName"
/>
<result
column=
"vin"
jdbcType=
"TIMESTAMP"
property=
"vin"
/>
<result
column=
"vin"
jdbcType=
"TIMESTAMP"
property=
"vin"
/>
<result
column=
"id"
jdbcType=
"INTEGER"
property=
"vehicleId"
/>
<result
column=
"id"
jdbcType=
"INTEGER"
property=
"vehicleId"
/>
<result
column=
"license_plate"
jdbcType=
"VARCHAR"
property=
"licensePlate"
/>
</resultMap>
</resultMap>
...
@@ -85,6 +86,7 @@
...
@@ -85,6 +86,7 @@
tv.owner_name,
tv.owner_name,
tv.vin,
tv.vin,
tv.id,
tv.id,
tv.license_plate,
tdp.alarm_time
tdp.alarm_time
from t_device_power tdp
from t_device_power tdp
left join t_vehicle_device tvd on tvd.id = tdp.vd_id
left join t_vehicle_device tvd on tvd.id = tdp.vd_id
...
...
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