From b63ff58e2c415bae2fb4741aebe710fa3576ff66 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 23 三月 2026 13:11:47 +0800
Subject: [PATCH] 2026年03月23日13:11:38 备份代码

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java |   88 +++++++------------------------------------
 1 files changed, 15 insertions(+), 73 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java
index 7ccaa94..62d04b3 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java
@@ -391,10 +391,11 @@
      * @param installedCapacityMax 鏈�澶х粍涓插閲�(瑁呮満瀹归噺)
      * @param debugStatus          璋冭瘯鐘舵��(鍏ㄩ儴;璋冭瘯涓�;璋冭瘯瀹屾垚;宸蹭氦浠�;鎺堟潈璋冭瘯)
      * @param powerStationStatus   鐢电珯鐘舵�� (鍏ㄩ儴  锛�"";1 锛� 姝e父;2 锛� 绂荤嚎; 3 锛� 寰呮帴鍏�;4 锛� 鏁呴殰)
+     * @param powerStationType     鐢电珯绫诲瀷(INV = 閫嗗彉鍣ㄧ數绔�;BMS = BMS鐢电珯)
      * @param pageNo               椤电爜
      * @param pageSize             椤垫暟锛堜竴椤靛灏戞暟鎹級
      */
-    public void getResidenceIdList(String key, String keyValue, String installedCapacityMin, String installedCapacityMax, String debugStatus, String powerStationStatus, long pageNo, long pageSize, CloudCallBeak<HouseBeanClass> cloudCallBeak) {
+    public void getResidenceIdList(String key, String keyValue, String installedCapacityMin, String installedCapacityMax, String debugStatus, String powerStationStatus, String powerStationType, long pageNo, long pageSize, CloudCallBeak<HouseBeanClass> cloudCallBeak) {
 
         String requestUrl = HttpApi.POST_PowerStation_List;
         JsonObject json = new JsonObject();
@@ -425,6 +426,12 @@
             try {
                 int value = Integer.parseInt(powerStationStatus);
                 json.addProperty("powerStationStatus", value);
+            } catch (Exception ignored) {
+            }
+        }
+        if (!TextUtils.isEmpty(powerStationType)) {
+            try {
+                json.addProperty("powerStationType", powerStationType);
             } catch (Exception ignored) {
             }
         }
@@ -616,8 +623,9 @@
      * @param debugStatus          (璋冭瘯鐘舵��:Debugging = 璋冭瘯涓�,WAIT_DELIVERED = 璋冭瘯瀹屾垚,Delivered = 宸蹭氦浠�,SECONDARY_DEBUGGIN = 鎺堟潈璋冭瘯)
      * @param installedCapacityMin 鏈�灏忕粍涓插閲�(瑁呮満瀹归噺)
      * @param installedCapacityMax 鏈�澶х粍涓插閲�(瑁呮満瀹归噺)
+     * @param powerStationType 鐢电珯绫诲瀷锛堥�嗗彉鍣紝BMS锛�
      */
-    public void getStatusOverview(String debugStatus, String installedCapacityMin, String installedCapacityMax, CloudCallBeak<StatusOverviewBean> cloudCallBeak) {
+    public void getStatusOverview(String debugStatus, String installedCapacityMin, String installedCapacityMax,String powerStationType, CloudCallBeak<StatusOverviewBean> cloudCallBeak) {
         String requestUrl = HttpApi.POST_statusOverview;
         JsonObject json = new JsonObject();
         if (!TextUtils.isEmpty(installedCapacityMin)) {
@@ -628,6 +636,10 @@
         }
         if (!TextUtils.isEmpty(debugStatus)) {
             json.addProperty("debugStatus", debugStatus);
+        }
+
+        if (!TextUtils.isEmpty(powerStationType)) {
+            json.addProperty("powerStationType", powerStationType);
         }
 
 
@@ -934,6 +946,7 @@
 //        HdlFileLogic.getInstance().deleteDirectory(HdlFileLogic.getInstance().getCurrentHomeRootPath());
         //閲嶆柊璁剧疆浣忓畢id
         UserConfigManage.getInstance().setHomeId(houseIdBean.getHomeId());
+        UserConfigManage.getInstance().setPowerStationType(houseIdBean.getPowerStationType());
         UserConfigManage.getInstance().setHomeName(houseIdBean.getHomeName());
         //閲嶆柊璁剧疆鏈湴閫氳绉橀挜
         UserConfigManage.getInstance().setLocalSecret(houseIdBean.getLocalSecret());
@@ -1140,77 +1153,6 @@
 
     }
 
-    /**
-     * 娣诲姞鎺ㄩ�乀oken
-     *
-     * @param cloudCallBeak -
-     */
-    public void pushAdd(CloudCallBeak<String> cloudCallBeak) {
-        String requestUrl = HttpApi.POST_push_add;
-        JsonObject json = new JsonObject();
-        json.addProperty("deviceName", Build.MODEL);//璁惧鍚嶇О
-        json.addProperty("deviceType", "Android");//璁惧绫诲瀷
-        json.addProperty("produce", AppConfigManage.isIsOnlineServer());//琛ㄧず鏄惁鏄寮忔湇鍔″櫒
-        json.addProperty("pushToken", UserConfigManage.getInstance().getPushToken());//App鐨勬帹閫乀oken锛屽湪鏋佸厜涓篟egId
-        json.addProperty("software", "XENTERRA");//杞欢鏉ユ簮鎶奝HOTOVOLTAIC鏀规垚XENTERRA
-        json.addProperty("platform", "ALIYUN_APNS");//闃块噷浜戠殑鐗堟湰鐨刾latform
-//        json.addProperty("platform", "FCM");//google鐨勭増鏈殑platform
-        json.addProperty("language", UserConfigManage.getInstance().getCurrentAppLanguage());//2.0杩藉姞鐨勫瓧娈�
-
-        HttpClient.getInstance().requestHttp(requestUrl, json.toString(), new CloudCallBeak<String>() {
-            @Override
-            public void onSuccess(String pushId) {
-                if (!TextUtils.isEmpty(pushId)) {
-                    UserConfigManage.getInstance().setPushId(pushId);
-                    UserConfigManage.getInstance().Save();
-                }
-                if (cloudCallBeak != null) {
-                    cloudCallBeak.onSuccess(pushId);
-                }
-
-            }
-
-            @Override
-            public void onFailure(HDLException e) {
-                if (cloudCallBeak != null) {
-                    cloudCallBeak.onFailure(e);
-                }
-            }
-        });
-
-
-    }
-
-    /**
-     * 鍒犻櫎鎺ㄩ�乀oken
-     *
-     * @param cloudCallBeak -
-     */
-    public void pushDel(CloudCallBeak<String> cloudCallBeak) {
-        String requestUrl = HttpApi.POST_push_del;
-        JsonObject json = new JsonObject();
-        json.addProperty("pushId", UserConfigManage.getInstance().getPushId());
-        json.addProperty("pushToken", UserConfigManage.getInstance().getPushToken());
-
-        HttpClient.getInstance().requestHttp(requestUrl, json.toString(), new CloudCallBeak<String>() {
-            @Override
-            public void onSuccess(String jsonStr) {
-                if (cloudCallBeak != null) {
-                    cloudCallBeak.onSuccess(jsonStr);
-                }
-
-            }
-
-            @Override
-            public void onFailure(HDLException e) {
-                if (cloudCallBeak != null) {
-                    cloudCallBeak.onFailure(e);
-                }
-            }
-        });
-
-
-    }
 
     public static class HouseBeanClass {
 

--
Gitblit v1.8.0