Commit cc850705 by 111-PC\111

[+]代码规范

1 parent 0c86639d
...@@ -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)
......
...@@ -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");
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!