|
|
@ -100,6 +100,9 @@ public class AlarmSaveServiceImpl implements AlarmSaveService { |
|
|
|
alarm.setCreateDept(optional.get().getCreateDept()); |
|
|
|
alarm.setCreateDept(optional.get().getCreateDept()); |
|
|
|
alarm.setStationName(optional.get().getName()); |
|
|
|
alarm.setStationName(optional.get().getName()); |
|
|
|
alarm.setTenantId(optional.get().getTenantId()); |
|
|
|
alarm.setTenantId(optional.get().getTenantId()); |
|
|
|
|
|
|
|
if(StringUtil.isNotBlank(alarm.getAlarmValue()) && alarm.getAlarmValue().length() > 2048){ |
|
|
|
|
|
|
|
alarm.setAlarmValue(alarm.getAlarmValue().substring(0,2048)); |
|
|
|
|
|
|
|
} |
|
|
|
alarm.setStatus(0); |
|
|
|
alarm.setStatus(0); |
|
|
|
// 步骤4.根据站点查询配置标识
|
|
|
|
// 步骤4.根据站点查询配置标识
|
|
|
|
AlarmHandleMarkVo mark = alarmConfigService.mark(alarm.getStationId(),alarm.getAlarmSource(),alarm.getAlarmType()); |
|
|
|
AlarmHandleMarkVo mark = alarmConfigService.mark(alarm.getStationId(),alarm.getAlarmSource(),alarm.getAlarmType()); |
|
|
|