Browse Source

<注册门口机没有注册床位时门口机房号不显示>

weizhengliang 4 years ago
parent
commit
c257cc2653

+ 6 - 4
app/src/main/java/com/wdkl/callingdoor/ui/CallingDoorActivity.java

@@ -680,6 +680,7 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
             return;
             return;
         }
         }
         setDeviceNo();
         setDeviceNo();
+        tvBedNumList.setText(initDataEntity.getDeviceRoomNum() + "房");
         //循环切换网络状态
         //循环切换网络状态
         mWifiHotBindSipStatusConnectorUtil = WifiHotBindSipStatusConnectorUtil.getInstance(context);
         mWifiHotBindSipStatusConnectorUtil = WifiHotBindSipStatusConnectorUtil.getInstance(context);
         mWifiHotBindSipStatusConnectorUtil.sendNetStatus(this, initDataEntity);
         mWifiHotBindSipStatusConnectorUtil.sendNetStatus(this, initDataEntity);
@@ -707,9 +708,9 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
                             try {
                             try {
                                 showContent();
                                 showContent();
                                 JSONObject object = new JSONObject(data);
                                 JSONObject object = new JSONObject(data);
-                                LogUtil.e("AAAA", object + "");
+                                LogUtil.e("getData111", object + "");
                                 if (object.getString("Code").equals("ERROR!")) {
                                 if (object.getString("Code").equals("ERROR!")) {
-                                    LogUtil.e("AAAA", "数据不正常");
+                                    LogUtil.e("getData111", "数据不正常");
                                     handler.sendEmptyMessage(MAIN_DATA_ERROR);
                                     handler.sendEmptyMessage(MAIN_DATA_ERROR);
                                 } else {
                                 } else {
                                     Gson gson = new Gson();
                                     Gson gson = new Gson();
@@ -850,6 +851,7 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
         initDataEntity = (InitDataEntity) getIntent().getSerializableExtra(Constants.INITENTITY);
         initDataEntity = (InitDataEntity) getIntent().getSerializableExtra(Constants.INITENTITY);
         if (null == initDataEntity) return;
         if (null == initDataEntity) return;
         setDeviceNo();
         setDeviceNo();
+        tvBedNumList.setText(initDataEntity.getDeviceRoomNum() + "房");
         if (!StringUtils.notEmpty(Constants.PartID)) return;
         if (!StringUtils.notEmpty(Constants.PartID)) return;
         OkHttpUtils
         OkHttpUtils
                 .post()
                 .post()
@@ -870,9 +872,9 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
                         try {
                         try {
                             showContent();
                             showContent();
                             JSONObject object = new JSONObject(data);
                             JSONObject object = new JSONObject(data);
-                            LogUtil.e("AAAA", object + "");
+                            LogUtil.e("getData222", object + "");
                             if (object.getString("Code").equals("ERROR!")) {
                             if (object.getString("Code").equals("ERROR!")) {
-                                LogUtil.e("AAAA", "数据不正常");
+                                LogUtil.e("getData222", "数据不正常");
                                 handler.sendEmptyMessage(MAIN_DATA_ERROR);
                                 handler.sendEmptyMessage(MAIN_DATA_ERROR);
                             } else {
                             } else {
                                 Gson gson = new Gson();
                                 Gson gson = new Gson();