|
|
@ -83,14 +83,14 @@ public class FdpAlarmServiceImpl implements FdpAlarmService { |
|
|
|
|
|
|
|
|
|
|
|
private AlarmEntity getAlarmEntity(FdpAlarmVo item) { |
|
|
|
private AlarmEntity getAlarmEntity(FdpAlarmVo item) { |
|
|
|
AlarmEntity entity = new AlarmEntity(); |
|
|
|
AlarmEntity entity = new AlarmEntity(); |
|
|
|
entity.setAlarmId(item.getUUID()); |
|
|
|
entity.setAlarmId(item.getUuid()); |
|
|
|
entity.setRealId(item.getFaultId()); |
|
|
|
entity.setRealId(item.getFaultId()); |
|
|
|
entity.setAlarmTime(item.getCreateTime()); |
|
|
|
entity.setAlarmTime(item.getCreateTime()); |
|
|
|
entity.setAlarmContext(item.getFinfo()); |
|
|
|
entity.setAlarmContext(item.getFinfo()); |
|
|
|
entity.setAlarmType(EARLY); |
|
|
|
entity.setAlarmType(EARLY); |
|
|
|
entity.setDeviceCode(item.getDeviceId()); |
|
|
|
entity.setDeviceCode(item.getDeviceId()); |
|
|
|
entity.setDeviceName(item.getDeviceName()); |
|
|
|
entity.setDeviceName(item.getDeviceName()); |
|
|
|
entity.setAlarmStatus(Integer.valueOf(item.getStatus())); |
|
|
|
entity.setAlarmStatus(0); |
|
|
|
entity.setAlarmValue(item.getInfo()); |
|
|
|
entity.setAlarmValue(item.getInfo()); |
|
|
|
entity.setStationId(item.getStation()); |
|
|
|
entity.setStationId(item.getStation()); |
|
|
|
entity.setDiagReason(item.getDiagReason()); |
|
|
|
entity.setDiagReason(item.getDiagReason()); |
|
|
|