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 62fc834b
authored
Apr 20, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆列表-修复调频数据导致空指针
1 parent
bca7429f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/remote/RemoteFeignDeviceService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/remote/RemoteFeignDeviceService.java
View file @
62fc834
...
@@ -36,7 +36,6 @@ public class RemoteFeignDeviceService {
...
@@ -36,7 +36,6 @@ public class RemoteFeignDeviceService {
* @return
* @return
*/
*/
public
Map
<
String
,
DeviceStatusModel
>
listDeviceStatusBySns
(
Collection
<
String
>
sns
)
{
public
Map
<
String
,
DeviceStatusModel
>
listDeviceStatusBySns
(
Collection
<
String
>
sns
)
{
log
.
info
(
"调用监控服务获取设备在线和离线的状态==="
+
JSONUtil
.
toJsonStr
(
sns
));
R
<
List
<
DeviceStatusModel
>>
listDeviceStatusBySnsR
=
deviceFeignService
.
listDeviceStatusBySns
(
new
DeviceStatusRequest
(
sns
));
R
<
List
<
DeviceStatusModel
>>
listDeviceStatusBySnsR
=
deviceFeignService
.
listDeviceStatusBySns
(
new
DeviceStatusRequest
(
sns
));
List
<
DeviceStatusModel
>
listDeviceStatusBySnsDataList
=
listDeviceStatusBySnsR
.
getDataList
(
new
TypeToken
<
List
<
DeviceStatusModel
>>()
{
List
<
DeviceStatusModel
>
listDeviceStatusBySnsDataList
=
listDeviceStatusBySnsR
.
getDataList
(
new
TypeToken
<
List
<
DeviceStatusModel
>>()
{
}.
getType
());
}.
getType
());
...
@@ -55,7 +54,6 @@ public class RemoteFeignDeviceService {
...
@@ -55,7 +54,6 @@ public class RemoteFeignDeviceService {
* @return
* @return
*/
*/
public
Map
<
String
,
DeviceStatusModel
>
getDeviceStatusBySns
(
Map
<
String
,
Integer
>
snsMap
)
{
public
Map
<
String
,
DeviceStatusModel
>
getDeviceStatusBySns
(
Map
<
String
,
Integer
>
snsMap
)
{
log
.
info
(
"调用监控服务获取设备在线和离线的状态==="
+
JSONUtil
.
toJsonStr
(
snsMap
));
R
<
List
<
DeviceStatusModel
>>
listDeviceStatusBySnsR
=
deviceFeignService
.
listDeviceStatusBySnsMap
(
new
DeviceStatusRequest
(
snsMap
));
R
<
List
<
DeviceStatusModel
>>
listDeviceStatusBySnsR
=
deviceFeignService
.
listDeviceStatusBySnsMap
(
new
DeviceStatusRequest
(
snsMap
));
List
<
DeviceStatusModel
>
deviceStatusList
=
listDeviceStatusBySnsR
.
getDataList
(
new
TypeToken
<
List
<
DeviceStatusModel
>>()
{
List
<
DeviceStatusModel
>
deviceStatusList
=
listDeviceStatusBySnsR
.
getDataList
(
new
TypeToken
<
List
<
DeviceStatusModel
>>()
{
}.
getType
());
}.
getType
());
...
...
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
62fc834
...
@@ -1145,6 +1145,7 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1145,6 +1145,7 @@ public class VehicleService extends AbstractCommonService {
}
}
//organizationApiService.drawReportOrganization(vehicleInfoList);
//organizationApiService.drawReportOrganization(vehicleInfoList);
return
vehicleInfoList
;
return
vehicleInfoList
;
}
}
...
@@ -1159,7 +1160,11 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1159,7 +1160,11 @@ public class VehicleService extends AbstractCommonService {
if
(
Constants
.
ADJ_FREQ_CATCHING
==
freqType
)
{
if
(
Constants
.
ADJ_FREQ_CATCHING
==
freqType
)
{
//追车模式
//追车模式
model
.
setFrequency
(
model
.
getCatchingTimer
()
+
"分钟/点"
);
model
.
setFrequency
(
model
.
getCatchingTimer
()
+
"分钟/点"
);
model
.
setFreTotal
(
model
.
getDiffMinuteTime
()
/
Integer
.
parseInt
(
model
.
getCatchingTimer
()));
if
(
model
.
getDiffMinuteTime
()
!=
null
)
{
model
.
setFreTotal
(
model
.
getDiffMinuteTime
()
/
Integer
.
parseInt
(
model
.
getCatchingTimer
()));
}
else
{
model
.
setFreTotal
(
0
);
}
model
.
setFreqTypeStr
(
"追车模式"
);
model
.
setFreqTypeStr
(
"追车模式"
);
}
else
if
(
Constants
.
ADJ_FREQ_TIMER
==
freqType
)
{
}
else
if
(
Constants
.
ADJ_FREQ_TIMER
==
freqType
)
{
//闹钟模式
//闹钟模式
...
@@ -1677,7 +1682,11 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1677,7 +1682,11 @@ public class VehicleService extends AbstractCommonService {
if
(
Constants
.
ADJ_FREQ_CATCHING
==
freqType
)
{
if
(
Constants
.
ADJ_FREQ_CATCHING
==
freqType
)
{
//追车模式
//追车模式
model
.
setFrequency
(
model
.
getCatchingTimer
()
+
"分钟/点"
);
model
.
setFrequency
(
model
.
getCatchingTimer
()
+
"分钟/点"
);
model
.
setFreTotal
(
model
.
getDiffMinuteTime
()
/
Integer
.
parseInt
(
model
.
getCatchingTimer
()));
if
(
model
.
getDiffMinuteTime
()
!=
null
)
{
model
.
setFreTotal
(
model
.
getDiffMinuteTime
()
/
Integer
.
parseInt
(
model
.
getCatchingTimer
()));
}
else
{
model
.
setFreTotal
(
0
);
}
model
.
setFreqTypeStr
(
"追车模式"
);
model
.
setFreqTypeStr
(
"追车模式"
);
}
else
if
(
Constants
.
ADJ_FREQ_TIMER
==
freqType
)
{
}
else
if
(
Constants
.
ADJ_FREQ_TIMER
==
freqType
)
{
//闹钟模式
//闹钟模式
...
...
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