Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-message-channel
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 cc850705
authored
May 14, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码规范
1 parent
0c86639d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/main/java/cn/com/glsx/Application.java
src/main/java/cn/com/glsx/consumer/modules/service/DeviceService.java
src/main/java/cn/com/glsx/Application.java
View file @
cc85070
...
@@ -16,7 +16,7 @@ import tk.mybatis.spring.annotation.MapperScan;
...
@@ -16,7 +16,7 @@ import tk.mybatis.spring.annotation.MapperScan;
*/
*/
@EnableRestAdmin
@EnableRestAdmin
@EnableDiscoveryClient
@EnableDiscoveryClient
@EnableFeignClients
@EnableFeignClients
(
"cn.com.glsx.consumer.modules.client"
)
@EnableTransactionManagement
@EnableTransactionManagement
@MapperScan
(
basePackages
=
"cn.com.glsx.consumer.modules.mapper"
)
@MapperScan
(
basePackages
=
"cn.com.glsx.consumer.modules.mapper"
)
@EnableMBeanExport
(
registration
=
RegistrationPolicy
.
IGNORE_EXISTING
)
@EnableMBeanExport
(
registration
=
RegistrationPolicy
.
IGNORE_EXISTING
)
...
...
src/main/java/cn/com/glsx/consumer/modules/service/DeviceService.java
View file @
cc85070
...
@@ -52,8 +52,8 @@ public class DeviceService {
...
@@ -52,8 +52,8 @@ public class DeviceService {
*/
*/
public
String
getDeviceName
(
String
devId
)
{
public
String
getDeviceName
(
String
devId
)
{
R
deviceName
=
smartPlatformClient
.
getDeviceName
(
devId
);
R
deviceName
=
smartPlatformClient
.
getDeviceName
(
devId
);
String
message
=
deviceName
.
getMessage
();
Object
data
=
deviceName
.
getData
();
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
message
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
data
)
);
return
jsonObject
.
getString
(
"name"
);
return
jsonObject
.
getString
(
"name"
);
}
}
}
}
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