| | |
| | | deviceExceptionLog.setTime(now); |
| | | deviceExceptionLog.setContent(content); |
| | | deviceExceptionLog.setExecDesc(HeartbeatExecEnum.GAS_CONCENTRATION.getDesc()); |
| | | deviceExceptionLog.setDelFlag(0); |
| | | deviceExceptionLog.setDelFlag(1); |
| | | DeviceExceptionLog save = deviceExceptionLogService.save(deviceExceptionLog); |
| | | if (save == null) |
| | | throw new BusinessException(this.getClass(), ResultCode.SYSTEM_ERROR_DATABASE_FAIL.getCode(),"设备异常日志保存失败"); |
| | |
| | | deviceExceptionLog.setTime(now); |
| | | deviceExceptionLog.setContent(content); |
| | | deviceExceptionLog.setExecDesc(HeartbeatExecEnum.GAS_FLUX.getDesc()); |
| | | deviceExceptionLog.setDelFlag(0); |
| | | deviceExceptionLog.setDelFlag(1); |
| | | DeviceExceptionLog save = deviceExceptionLogService.save(deviceExceptionLog); |
| | | if (save == null) |
| | | throw new BusinessException(this.getClass(), ResultCode.SYSTEM_ERROR_DATABASE_FAIL.getCode(),"设备异常日志保存失败"); |