|
@@ -469,7 +469,6 @@ public class AlarmRecordServiceImpl implements IAlarmRecordService {
|
|
|
warningNoticeLogDto.setWarningTime(LocalDateTime.now());
|
|
warningNoticeLogDto.setWarningTime(LocalDateTime.now());
|
|
|
warningNoticeLogDto.setWarningWay(illegalRemoval);
|
|
warningNoticeLogDto.setWarningWay(illegalRemoval);
|
|
|
warningNoticeLogDto.setHolder(dbStock.getCreateName());
|
|
warningNoticeLogDto.setHolder(dbStock.getCreateName());
|
|
|
-// warningNoticeLogDto.setDeposit(storageRVo.getLocation());
|
|
|
|
|
warningNoticeLogDto.setMargin(dbStock.getGasPressure());
|
|
warningNoticeLogDto.setMargin(dbStock.getGasPressure());
|
|
|
warningNoticeLogDto.setSpecification(dbStock.getSize()+"");
|
|
warningNoticeLogDto.setSpecification(dbStock.getSize()+"");
|
|
|
warningNoticeLogDto.setEntryTime(LocalDateTimeUtil.of(dbStock.getCreateTime()));
|
|
warningNoticeLogDto.setEntryTime(LocalDateTimeUtil.of(dbStock.getCreateTime()));
|
|
@@ -498,22 +497,6 @@ public class AlarmRecordServiceImpl implements IAlarmRecordService {
|
|
|
}
|
|
}
|
|
|
Long logId = (Long) resultData.getData();
|
|
Long logId = (Long) resultData.getData();
|
|
|
|
|
|
|
|
- //rfid门禁机报警
|
|
|
|
|
-// R<Boolean> alarm = remoteRfidService.alarm(hardwareRfidDto);
|
|
|
|
|
-// log.info("==================>{},{}",alarm.getCode(),alarm.getMsg());
|
|
|
|
|
-
|
|
|
|
|
- //摄像头录像
|
|
|
|
|
-// ResultData<LabHardwareDto> cameraHardware = remoteLabHardwareService.findHardwareByType(storageRVo.getSubjectId(), 4, null, "2");
|
|
|
|
|
-// if (HttpStatus.SUCCESS == cameraHardware.getCode()) {
|
|
|
|
|
-// String ip = String.valueOf(cameraHardware.getData().getIpAddress());
|
|
|
|
|
-// startVideo(ip);
|
|
|
|
|
-// scheduledExecutorService.schedule(new TimerTask() {
|
|
|
|
|
-// @Override
|
|
|
|
|
-// public void run() {
|
|
|
|
|
-// stopVideo(ip, logId);
|
|
|
|
|
-// }
|
|
|
|
|
-// }, 30, TimeUnit.SECONDS);
|
|
|
|
|
-// }
|
|
|
|
|
//按照配置预警
|
|
//按照配置预警
|
|
|
if (illegalRemoval != null) {
|
|
if (illegalRemoval != null) {
|
|
|
String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-实验人员违规携带"+warningNoticeLogDto.getName()+"气瓶离开房间,发生时间:" + LocalDateTimeUtil.format(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss") + ",请尽快确认。";
|
|
String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-实验人员违规携带"+warningNoticeLogDto.getName()+"气瓶离开房间,发生时间:" + LocalDateTimeUtil.format(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss") + ",请尽快确认。";
|