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 637e3523
authored
Dec 26, 2021
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化、bug修复或预防
1 parent
781c6c53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 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 @
637e352
...
...
@@ -1049,25 +1049,27 @@ public class VehicleService {
// 无线设备才会有一键调频
vehicleInfoPageDTO
.
setSpecialState
(
"--"
);
if
(
vehicleInfoPageDTO
.
getDeviceType
()
!=
null
&&
vehicleInfoPageDTO
.
getDeviceType
()
==
0
)
{
// 调频开关
Integer
freqStatus
=
vehicleInfoPageDTO
.
getFreqStatus
();
if
(
freqStatus
!=
null
&&
freqStatus
==
1
)
{
vehicleInfoPageDTO
.
setSpecialState
(
"调频生效"
);
}
else
if
(
freqStatus
!=
null
&&
freqStatus
==
0
)
{
vehicleInfoPageDTO
.
setSpecialState
(
"调频关闭"
);
}
}
// 判断是否支持高阶调频
setEnableFreParam
(
vehicleInfoPageDTO
);
//设置设备是否支持调频
if
(
StringUtils
.
isNotBlank
(
supAdjFreq
))
{
String
strs
[]
=
supAdjFreq
.
split
(
","
);
for
(
String
str
:
strs
)
{
String
sn
=
vehicleInfoPageDTO
.
getSn
();
if
(
StringUtils
.
isNotEmpty
(
sn
))
{
if
(
sn
.
startsWith
(
str
))
{
vehicleInfoPageDTO
.
setAdjFreq
(
1
);
break
;
// 判断是否支持高阶调频
setEnableFreParam
(
vehicleInfoPageDTO
);
//设置设备是否支持调频
if
(
StringUtils
.
isNotBlank
(
supAdjFreq
))
{
String
strs
[]
=
supAdjFreq
.
split
(
","
);
for
(
String
str
:
strs
)
{
String
sn
=
vehicleInfoPageDTO
.
getSn
();
if
(
StringUtils
.
isNotEmpty
(
sn
))
{
if
(
sn
.
startsWith
(
str
))
{
vehicleInfoPageDTO
.
setAdjFreq
(
1
);
break
;
}
}
}
}
...
...
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