Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
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 404669ca
authored
May 16, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into develop
2 parents
68cbede2
f7f0628b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
src/main/java/cn/com/glsx/devicemonitor/config/IceServerConfig.java
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
src/main/java/cn/com/glsx/devicemonitor/config/IceServerConfig.java
View file @
404669c
...
@@ -42,6 +42,7 @@ public class IceServerConfig {
...
@@ -42,6 +42,7 @@ public class IceServerConfig {
// 加载属性文件
// 加载属性文件
Ice
.
Properties
beforeProperties
=
Ice
.
Util
.
createProperties
();
Ice
.
Properties
beforeProperties
=
Ice
.
Util
.
createProperties
();
beforeProperties
.
setProperty
(
"Ice.MessageSizeMax"
,
"20480"
);
beforeProperties
.
setProperty
(
"Ice.MessageSizeMax"
,
"20480"
);
beforeProperties
.
setProperty
(
"Ice.Override.Timeout"
,
"60000"
);
Ice
.
InitializationData
initData
=
new
Ice
.
InitializationData
();
Ice
.
InitializationData
initData
=
new
Ice
.
InitializationData
();
initData
.
properties
=
beforeProperties
;
initData
.
properties
=
beforeProperties
;
...
@@ -76,6 +77,7 @@ public class IceServerConfig {
...
@@ -76,6 +77,7 @@ public class IceServerConfig {
// 加载属性文件
// 加载属性文件
Ice
.
Properties
beforeProperties
=
Ice
.
Util
.
createProperties
();
Ice
.
Properties
beforeProperties
=
Ice
.
Util
.
createProperties
();
beforeProperties
.
setProperty
(
"Ice.MessageSizeMax"
,
"20480"
);
beforeProperties
.
setProperty
(
"Ice.MessageSizeMax"
,
"20480"
);
beforeProperties
.
setProperty
(
"Ice.Override.Timeout"
,
"60000"
);
Ice
.
InitializationData
initData
=
new
Ice
.
InitializationData
();
Ice
.
InitializationData
initData
=
new
Ice
.
InitializationData
();
initData
.
properties
=
beforeProperties
;
initData
.
properties
=
beforeProperties
;
...
...
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
View file @
404669c
...
@@ -282,6 +282,10 @@ public class HdaoGpsComponent {
...
@@ -282,6 +282,10 @@ public class HdaoGpsComponent {
* @return
* @return
*/
*/
public
DataBsLocation
getDeviceLastBsInfo
(
String
sn
,
DeviceTypeRelationEnum
deviceTypeRelationEnum
)
{
public
DataBsLocation
getDeviceLastBsInfo
(
String
sn
,
DeviceTypeRelationEnum
deviceTypeRelationEnum
)
{
if
(
deviceTypeRelationEnum
==
null
)
{
log
.
warn
(
"sn={} deviceTypeRelationEnum is null, please check sn data!!!"
,
sn
);
return
null
;
}
DataBsLocation
dataBsLocation
=
null
;
DataBsLocation
dataBsLocation
=
null
;
try
{
try
{
if
(
daoGpsServicePrx
==
null
)
{
if
(
daoGpsServicePrx
==
null
)
{
...
@@ -332,6 +336,10 @@ public class HdaoGpsComponent {
...
@@ -332,6 +336,10 @@ public class HdaoGpsComponent {
* @return
* @return
*/
*/
public
DataGpsLocation
getDeviceLastGpsInfo
(
String
sn
,
DeviceTypeRelationEnum
deviceTypeRelationEnum
)
{
public
DataGpsLocation
getDeviceLastGpsInfo
(
String
sn
,
DeviceTypeRelationEnum
deviceTypeRelationEnum
)
{
if
(
deviceTypeRelationEnum
==
null
)
{
log
.
warn
(
"sn={} deviceTypeRelationEnum is null, please check sn data!!!"
,
sn
);
return
null
;
}
DataGpsLocation
dataGpsLocation
=
null
;
DataGpsLocation
dataGpsLocation
=
null
;
try
{
try
{
if
(
daoGpsServicePrx
==
null
)
{
if
(
daoGpsServicePrx
==
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