parent
a67b1840aa
commit
c44b691d8e
|
@ -1,7 +1,6 @@
|
||||||
package com.zjyr.beidouservice.common.impl;
|
package com.zjyr.beidouservice.common.impl;
|
||||||
|
|
||||||
import com.zjyr.beidouservice.common.EnumerationBase;
|
import com.zjyr.beidouservice.common.EnumerationBase;
|
||||||
import com.zjyr.beidouservice.constenum.AlarmTypeEnum;
|
|
||||||
|
|
||||||
public enum AlarmTypeName implements EnumerationBase {
|
public enum AlarmTypeName implements EnumerationBase {
|
||||||
|
|
||||||
|
@ -24,17 +23,6 @@ public enum AlarmTypeName implements EnumerationBase {
|
||||||
this.desc = desc;
|
this.desc = desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer getValue() {
|
|
||||||
return this.code;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
|
||||||
return this.desc;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static String getByCode(Integer code) {
|
public static String getByCode(Integer code) {
|
||||||
AlarmTypeName[] values = AlarmTypeName.values();
|
AlarmTypeName[] values = AlarmTypeName.values();
|
||||||
for (AlarmTypeName v : values) {
|
for (AlarmTypeName v : values) {
|
||||||
|
@ -44,4 +32,14 @@ public enum AlarmTypeName implements EnumerationBase {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer getValue() {
|
||||||
|
return this.code;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getDescription() {
|
||||||
|
return this.desc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,11 +25,6 @@ public interface DeviceService {
|
||||||
*/
|
*/
|
||||||
DeviceByIdRespDTO getDeviceByDeviceId(DeviceSearchDTO deviceSearchDTO);
|
DeviceByIdRespDTO getDeviceByDeviceId(DeviceSearchDTO deviceSearchDTO);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据设备任务更新设备告警状态
|
|
||||||
*
|
|
||||||
* @param deviceTaskDOS
|
|
||||||
*/
|
|
||||||
void refreshDeviceAlarmStatus(List<AlarmDeviceTaskDO> deviceTaskDOS);
|
void refreshDeviceAlarmStatus(List<AlarmDeviceTaskDO> deviceTaskDOS);
|
||||||
|
|
||||||
Integer getDeviceBeidouIdBySeqId(Integer seqId);
|
Integer getDeviceBeidouIdBySeqId(Integer seqId);
|
||||||
|
|
Loading…
Reference in New Issue