|
|
@@ -422,7 +422,7 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
}
|
|
|
Long logId = (Long)resultData.getData();
|
|
|
if(illegalRemoval != null){
|
|
|
- String text = "【实验室安全系统】实验室名称-实验人员违规携带化学品名称离开房间,发生时间:"+LocalDateTimeUtil.format(LocalDateTime.now(),"yyyy-MM-dd HH:mm:ss")+",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+warningNoticeLogDto.getKeyId();
|
|
|
+ String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-实验人员违规携带"+warningNoticeLogDto.getName()+"离开房间,发生时间:"+LocalDateTimeUtil.format(LocalDateTime.now(),"yyyy-MM-dd HH:mm:ss")+",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+logId;
|
|
|
if (illegalRemoval.contains("1")) {
|
|
|
//系统通知
|
|
|
LabMessageContent labMessageContent = new LabMessageContent();
|
|
|
@@ -446,7 +446,7 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
if (strings != null) {
|
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(),text);
|
|
|
remoteAlarmService.send(alarmEntrty);
|
|
|
- logger.info("气瓶发送短信打电话消息推送完成!");
|
|
|
+ logger.info("化学品违规带离发送短信打电话消息推送完成!");
|
|
|
}
|
|
|
}
|
|
|
if (hardwareRfidDto!=null && illegalRemoval.contains("3")) {
|
|
|
@@ -956,11 +956,15 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
}
|
|
|
//即将过期
|
|
|
if (startDateTime.getTime() < expirationTime.getTime() && endDateTime.getTime() > expirationTime.getTime()) {
|
|
|
- String text = "【实验室安全系统】实验室名称-化学品名称即将过期,发生时间:" + LocalDateTime.now() + ",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+warningNoticeLogDto.getKeyId();
|
|
|
warningNoticeLogDto.setWarningContent("化学品即将过期");
|
|
|
warningNoticeLogDto.setWarningSubType(3);
|
|
|
String unexpired = warningConfigDto.getUnexpired();
|
|
|
warningNoticeLogDto.setWarningWay(unexpired);
|
|
|
+ ResultData result = remoteLaboratoryService.addWarningNoticeLog(warningNoticeLogDto);
|
|
|
+ if (HttpStatus.SUCCESS == result.getCode()) {
|
|
|
+ logger.info("即将过期保存日志成功!");
|
|
|
+ }
|
|
|
+ String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-"+warningNoticeLogDto.getName()+"即将过期,发生时间:" + LocalDateTime.now() + ",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+result.getData();
|
|
|
if (unexpired.contains("1")) {
|
|
|
//系统通知
|
|
|
LabMessageContent labMessageContent = new LabMessageContent();
|
|
|
@@ -983,18 +987,18 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
logger.info("化学品发送短信打电话消息推送完成!");
|
|
|
}
|
|
|
}
|
|
|
- ResultData result = remoteLaboratoryService.addWarningNoticeLog(warningNoticeLogDto);
|
|
|
- if (HttpStatus.SUCCESS == result.getCode()) {
|
|
|
- logger.info("即将过期保存日志成功!");
|
|
|
- }
|
|
|
}
|
|
|
//已过期
|
|
|
if (DateUtils.getNowDate().getTime() >= expirationTime.getTime() && logDtoList.size() <= warningConfigDto.getExpiredWarnCount()) {
|
|
|
- String text2 = "【实验室安全系统】实验室名称-化学品名称已过期,请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+warningNoticeLogDto.getKeyId();
|
|
|
warningNoticeLogDto.setWarningContent("化学品已过期");
|
|
|
warningNoticeLogDto.setWarningSubType(4);
|
|
|
String expired = warningConfigDto.getExpired();
|
|
|
warningNoticeLogDto.setWarningWay(expired);
|
|
|
+ ResultData result = remoteLaboratoryService.addWarningNoticeLog(warningNoticeLogDto);
|
|
|
+ if (HttpStatus.SUCCESS == result.getCode()) {
|
|
|
+ logger.info("已过期保存日志成功!");
|
|
|
+ }
|
|
|
+ String text2 = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-"+warningNoticeLogDto.getName()+"已过期,请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+result.getData();
|
|
|
if (expired.contains("1")) {
|
|
|
//系统通知
|
|
|
LabMessageContent labMessageContent = new LabMessageContent();
|
|
|
@@ -1016,10 +1020,6 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
logger.info("化学品发送短信打电话消息推送完成!");
|
|
|
}
|
|
|
}
|
|
|
- ResultData result = remoteLaboratoryService.addWarningNoticeLog(warningNoticeLogDto);
|
|
|
- if (HttpStatus.SUCCESS == result.getCode()) {
|
|
|
- logger.info("已过期保存日志成功!");
|
|
|
- }
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1085,11 +1085,15 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
if(DateUtils.getNowDate().getTime() > dateTime.getTime()){
|
|
|
hxpIds.add(hxpUserecord.getId());
|
|
|
//过了最大领用时间
|
|
|
- String text = "【实验室安全系统】实验室名称-人名领用化学品名称超时未归还,领用时间:"+LocalDateTime.now().toString() +",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+warningNoticeLogDto.getKeyId();
|
|
|
warningNoticeLogDto.setWarningContent("化学品超时未归还");
|
|
|
warningNoticeLogDto.setWarningSubType(2);
|
|
|
String timeout = warningConfigDto.getTimeout();
|
|
|
warningNoticeLogDto.setWarningWay(timeout);
|
|
|
+ ResultData result = remoteLaboratoryService.addWarningNoticeLog(warningNoticeLogDto);
|
|
|
+ if (HttpStatus.SUCCESS == result.getCode()) {
|
|
|
+ logger.info("化学品超时未归还保存日志成功!");
|
|
|
+ }
|
|
|
+ String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-"+warningNoticeLogDto.getApply()+"领用"+warningNoticeLogDto.getName()+"超时未归还,领用时间:"+LocalDateTime.now().toString() +",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+result.getData();
|
|
|
if (timeout.contains("1")) {
|
|
|
//系统通知
|
|
|
LabMessageContent labMessageContent = new LabMessageContent();
|
|
|
@@ -1111,10 +1115,6 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
logger.info("化学品发送短信打电话消息推送完成!");
|
|
|
}
|
|
|
}
|
|
|
- ResultData result = remoteLaboratoryService.addWarningNoticeLog(warningNoticeLogDto);
|
|
|
- if (HttpStatus.SUCCESS == result.getCode()) {
|
|
|
- logger.info("化学品超时未归还保存日志成功!");
|
|
|
- }
|
|
|
}
|
|
|
});
|
|
|
hxpUserecordMapper.updateUserecordOvertimeByIds(hxpIds);
|