数字孪生后台
This commit is contained in:
@@ -70,7 +70,7 @@ public class GetDeviceAlarm {
|
||||
* 构建报警数据:汇总四向车、输送机、提升机报警
|
||||
* - 四向车:报警代码 > 1,字典类型 srgv_alarm
|
||||
* - 输送机:报警代码 > 2,字典类型 ssj_ex
|
||||
* - 提升机:报警代码 > 1000,字典类型 tsj_alarm
|
||||
* - 提升机:报警代码 > 100,字典类型 tsj_alarm
|
||||
* 返回 JSON 字符串格式:{"alarm":[{id,name,alarm,alarmMsg}]}
|
||||
*/
|
||||
private String buildAlarmPayload() {
|
||||
@@ -112,7 +112,7 @@ public class GetDeviceAlarm {
|
||||
String codeId = entry.getKey();
|
||||
DeviceTsj d = entry.getValue();
|
||||
Integer code = d.getSbzt();
|
||||
if (code != null && code > 1000) {
|
||||
if (code != null && code > 100) {
|
||||
AlarmDto dto = new AlarmDto();
|
||||
dto.setId(codeId == null ? "" : codeId);
|
||||
dto.setName("提升机");
|
||||
|
||||
Reference in New Issue
Block a user