Commit cc850705 by 111-PC\111

[+]代码规范

1 parent 0c86639d
......@@ -16,7 +16,7 @@ import tk.mybatis.spring.annotation.MapperScan;
*/
@EnableRestAdmin
@EnableDiscoveryClient
@EnableFeignClients
@EnableFeignClients("cn.com.glsx.consumer.modules.client")
@EnableTransactionManagement
@MapperScan(basePackages = "cn.com.glsx.consumer.modules.mapper")
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
......
......@@ -52,8 +52,8 @@ public class DeviceService {
*/
public String getDeviceName(String devId) {
R deviceName = smartPlatformClient.getDeviceName(devId);
String message = deviceName.getMessage();
JSONObject jsonObject = JSONObject.parseObject(message);
Object data = deviceName.getData();
JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(data));
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!