wjc
2026-03-31 56f5de5eb6c1501175e7a36b10cf3d1b57284b47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
package com.hdl.photovoltaic.ui.bean;
 
import android.text.TextUtils;
 
import com.hdl.sdk.link.core.bean.gateway.FwVersionBean;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
/**
 * 云端逆变器实体类
 */
public class CloudInverterDeviceBean implements Serializable {
    /**
     * true-在线
     * false-离线
     */
    private boolean online;
    private String gatewayId;//网关Id
    private String deviceId;//设备id
    private String name;//设备名称
    private String spk;
    private String spkName;//
    private String sid;
    private String oid;
    private String omodel;//设备型号
    private String deviceModel;//设备型号(bms设备)
    private String deviceOidId;//设备云端上oid(bms设备)
 
    private String osn;//设备sn(mac)
 
    private String mac;//(bms设备mac),后面统一改成mac
    private String powerPvNow;//发电功率
    private String totalElectricityPvToday;//今日发电量
    private String systemStatusDesc;//状态
 
    private String inv;//inv状态
    private int deviceStatus;// : 连接中,2 : 故障,3 : 运行,4 : 离线
    private String addresses;//子网号/设备号
    private List<DeviceAttributeBean> status;
 
    private String hwVersion;//软件版本号
    private String categorySecondName;//设备类型(产品二级分类名称)
 
    private String deviceType;//(设备类型INV : 逆变器,BMS : BMS控制盒,BATTERY : 电池单元,LOAD_CENTRE :负载控制中心)
 
    private String homeId;
    private String homeName;
    private String outputActivePower;//逆变器输出有功功率
    private String address;//详细地址
    private HouseInfoBean.Location location;//电站地址
    private String localSecret;//所属电站的本地密钥
 
    private List<FwVersionBean> fwVersion = new ArrayList<>();//BMS设备才有的固件版本
    private String chargeToday;//今日充电量,BMS设备才有的
    private String dischargeToday;//今日放电量,BMS设备才有的
    private String bmsSource;//逆变器的BMS类型 内部的还是外部的 ;目前离网逆变器才有 内部:INTERNAL 外部:EXTERNAL 如果没有值当内部的处理
 
    public String getBmsSource() {
        return bmsSource == null ? "" : bmsSource;
    }
 
    public void setBmsSource(String bmsSource) {
        this.bmsSource = bmsSource;
    }
 
    /**
     * 今日充电量,BMS设备才有的
     *
     * @return
     */
    public String getChargeToday() {
        return chargeToday == null ? "" : chargeToday;
    }
 
 
    public void setChargeToday(String chargeToday) {
        this.chargeToday = chargeToday;
    }
 
    /**
     * 今日放电量,BMS设备才有的
     *
     * @param
     */
    public String getDischargeToday() {
        return dischargeToday == null ? "" : dischargeToday;
    }
 
    public void setDischargeToday(String dischargeToday) {
        this.dischargeToday = dischargeToday;
    }
 
    public String getDeviceModel() {
        return deviceModel == null ? "" : deviceModel;
    }
 
    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }
 
    public String getDeviceOidId() {
        return deviceOidId == null ? "" : deviceOidId;
    }
 
    public void setDeviceOidId(String deviceOidId) {
        this.deviceOidId = deviceOidId;
    }
 
    public List<FwVersionBean> getFwVersion() {
        return fwVersion;
    }
 
    public void setFwVersion(List<FwVersionBean> fwVersion) {
        this.fwVersion = fwVersion;
    }
 
    public boolean isActivate() {
        return activate;
    }
 
    public void setActivate(boolean activate) {
        this.activate = activate;
    }
 
    private boolean activate;//是否激活设备(true:激活;false:未激活)
 
    private boolean popUpgrade;//改设备是否有弹窗升级
    private boolean subPopUpgrade;//下挂设备是否有弹窗升级
 
    public boolean isSubPopUpgrade() {
        return subPopUpgrade;
    }
 
    public void setSubPopUpgrade(boolean subPopUpgrade) {
        this.subPopUpgrade = subPopUpgrade;
    }
 
    public boolean isPopUpgrade() {
        return popUpgrade;
    }
 
    public void setPopUpgrade(boolean popUpgrade) {
        this.popUpgrade = popUpgrade;
    }
 
    public String getWorkStatusDesc() {
        return workStatusDesc == null ? "" : this.workStatusDesc;
    }
 
    public void setWorkStatusDesc(String workStatusDesc) {
        this.workStatusDesc = workStatusDesc;
    }
 
    private String workStatusDesc;//工作状态(负载中心设备)
 
    private boolean ogMaster;//离网逆变器才返回
 
 
    public boolean isOgMaster() {
        return ogMaster;
    }
 
    public void setOgMaster(boolean ogMaster) {
        this.ogMaster = ogMaster;
    }
 
 
    public String getSystemStatusDesc() {
        return systemStatusDesc == null ? "" : systemStatusDesc;
    }
 
    public void setSystemStatusDesc(String systemStatusDesc) {
        this.systemStatusDesc = systemStatusDesc;
    }
 
    public String getHwVersion() {
        return hwVersion == null ? "" : hwVersion;
    }
 
    public void setHwVersion(String hwVersion) {
        this.hwVersion = hwVersion;
    }
 
    public String getCategorySecondName() {
        return categorySecondName == null ? "" : categorySecondName;
    }
 
    public void setCategorySecondName(String categorySecondName) {
        this.categorySecondName = categorySecondName;
    }
 
 
    public String getGatewayId() {
        return gatewayId == null ? "" : gatewayId;
    }
 
    public void setGatewayId(String gatewayId) {
        this.gatewayId = gatewayId;
    }
 
 
    public String getDeviceId() {
        return deviceId == null ? "" : deviceId;
    }
 
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
 
    public String getName() {
        return name == null ? "" : name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getSpk() {
        return spk == null ? "" : spk;
    }
 
    public void setSpk(String spk) {
        this.spk = spk;
    }
 
    public String getSpkName() {
        return spkName == null ? "" : spkName;
    }
 
    public void setSpkName(String spkName) {
        this.spkName = spkName;
    }
 
    public String getSid() {
 
        return TextUtils.isEmpty(sid) ? "" : sid;
    }
 
    public void setSid(String sid) {
        this.sid = sid;
    }
 
    public String getOid() {
        return oid == null ? "" : oid;
    }
 
    public void setOid(String oid) {
        this.oid = oid;
    }
 
    /**
     * 获取设备型号已兼用BMS设备情况(bms设备使用是DeviceModel字段,其它设备Omodel字段) 平台说后面会统一字段
     *
     * @return 设备型号
     */
    public String getOmodel() {
        return TextUtils.isEmpty(omodel) ? getDeviceModel() : omodel;
    }
 
    public void setOmodel(String omodel) {
        this.omodel = omodel;
    }
 
    /**
     * 获取设备sn(mac)已兼用BMS设备情况(bms设备使用是mac字段,其它设备osn字段) 平台说后面会统一字段
     *
     * @return 设备mac
     */
    public String getOsn() {
        return TextUtils.isEmpty(osn) ? getMac() : osn;
    }
 
    public void setOsn(String osn) {
        this.osn = osn;
    }
 
    public String getMac() {
        return mac == null ? "" : mac;
    }
 
    public void setMac(String mac) {
        this.mac = mac;
    }
 
    public String getPowerPvNow() {
        return powerPvNow == null ? "" : powerPvNow;
    }
 
    public void setPowerPvNow(String powerPvNow) {
        this.powerPvNow = powerPvNow;
    }
 
    public String getTotalElectricityPvToday() {
        return totalElectricityPvToday == null ? "" : totalElectricityPvToday;
    }
 
    public void setTotalElectricityPvToday(String totalElectricityPvToday) {
        this.totalElectricityPvToday = totalElectricityPvToday;
    }
 
    public String getInv() {
        return inv == null ? "" : inv;
    }
 
    public void setInv(String inv) {
        this.inv = inv;
    }
 
    public int getDeviceStatus() {
        return deviceStatus;
    }
 
    public void setDeviceStatus(int deviceStatus) {
        this.deviceStatus = deviceStatus;
    }
 
    public String getAddresses() {
        return addresses == null ? "" : addresses;
    }
 
    public void setAddresses(String addresses) {
        this.addresses = addresses;
    }
 
    public List<DeviceAttributeBean> getStatus() {
        return status == null ? new ArrayList<>() : status;
    }
 
    public void setStatus(List<DeviceAttributeBean> status) {
        this.status = status;
    }
 
    public boolean isOnline() {
        return online;
    }
 
    public void setOnline(boolean online) {
        this.online = online;
    }
 
    public String getDeviceType() {
        return deviceType == null ? "" : deviceType;
    }
 
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
 
    public String getHomeId() {
        return TextUtils.isEmpty(homeId) ? "" : homeId;
    }
 
    public void setHomeId(String homeId) {
        this.homeId = homeId;
    }
 
    public String getHomeName() {
        return TextUtils.isEmpty(homeName) ? "" : homeName;
    }
 
    public void setHomeName(String homeName) {
        this.homeName = homeName;
    }
 
    public String getOutputActivePower() {
        return TextUtils.isEmpty(outputActivePower) ? "" : outputActivePower;
    }
 
    public void setOutputActivePower(String outputActivePower) {
        this.outputActivePower = outputActivePower;
    }
 
    public String getAddress() {
        return TextUtils.isEmpty(address) ? "" : address;
    }
 
    public void setAddress(String address) {
        this.address = address;
    }
 
    public HouseInfoBean.Location getLocation() {
        return location;
    }
 
    public void setLocation(HouseInfoBean.Location location) {
        this.location = location;
    }
 
    public String getLocalSecret() {
        return localSecret == null ? "" : this.localSecret;
    }
 
    public void setLocalSecret(String localSecret) {
        this.localSecret = localSecret;
    }
 
 
    /**
     * 拼住宅地址
     *
     * @return 住宅地址
     */
    public String getHomeAddress() {
        if (this.location == null) {
            return this.getAddress();
        }
        return this.location.getNationName() + " " + this.location.getProvinceName() + " " + this.location.getCityName() + " " + this.getAddress();
    }
 
    public String getHomeNameAndDeviceName() {
        return this.getHomeName() + "_" + this.getName();
    }
}