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 2bf257ca
authored
Jun 07, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/feature' into feature
2 parents
df2846eb
f1956ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
2bf257c
...
...
@@ -1149,6 +1149,9 @@ public class VehicleService extends AbstractCommonService {
//将剩余电量后面增加%,无线设备才有电量
if
(
Objects
.
equals
(
DeviceWireTypeEnum
.
WIRELESS
.
getType
(),
vehicleInfo
.
getDeviceType
()))
{
vehicleInfo
.
setBatteryLevel
(
vehicleInfo
.
getBatteryLevel
()
==
null
?
"--"
:
(
vehicleInfo
.
getBatteryLevel
()
+
"%"
));
}
else
{
//其它类型设备电量置空,预防垃圾数据
vehicleInfo
.
setBatteryLevel
(
null
);
}
//设置设备状态
...
...
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