|
@@ -468,6 +468,7 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text);
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text);
|
|
|
remoteAlarmService.send(alarmEntrty);
|
|
remoteAlarmService.send(alarmEntrty);
|
|
|
logger.info("化学品违规带离发送短信打电话消息推送完成!");
|
|
logger.info("化学品违规带离发送短信打电话消息推送完成!");
|
|
|
|
|
+ logger.info("化学品违规带离发送短信内容:{}",text);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (hardwareRfidDto != null && illegalRemoval.contains("3")) {
|
|
if (hardwareRfidDto != null && illegalRemoval.contains("3")) {
|
|
@@ -916,9 +917,8 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
* @Param []
|
|
* @Param []
|
|
|
* @Return void
|
|
* @Return void
|
|
|
**/
|
|
**/
|
|
|
-
|
|
|
|
|
- @Scheduled(cron = "0 0 0 * * ?")
|
|
|
|
|
// @Scheduled(cron = "0 0/1 * * * ? ")
|
|
// @Scheduled(cron = "0 0/1 * * * ? ")
|
|
|
|
|
+ @Scheduled(cron = "0 0 0 * * ?")
|
|
|
public void hxpExpired() {
|
|
public void hxpExpired() {
|
|
|
// 查询配置
|
|
// 查询配置
|
|
|
ResultData<WarningConfigDto> byType = remoteLaboratoryService.getByType(2);
|
|
ResultData<WarningConfigDto> byType = remoteLaboratoryService.getByType(2);
|
|
@@ -991,7 +991,6 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
logger.error("获取urlScheme失败!");
|
|
logger.error("获取urlScheme失败!");
|
|
|
}
|
|
}
|
|
|
String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-"+warningNoticeLogDto.getName()+"即将过期,发生时间:" + LocalDateTime.now() + ",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+result.getData()+"&urlScheme="+urlScheme.getData();
|
|
String text = "【实验室安全系统】"+warningNoticeLogDto.getSubName()+"-"+warningNoticeLogDto.getName()+"即将过期,发生时间:" + LocalDateTime.now() + ",请尽快确认。点击查看:https://lab.zjznai.com/labAppTest/earlyWarning/index.html?id="+result.getData()+"&urlScheme="+urlScheme.getData();
|
|
|
- ;
|
|
|
|
|
if (unexpired.contains("1")) {
|
|
if (unexpired.contains("1")) {
|
|
|
//系统通知
|
|
//系统通知
|
|
|
LabMessageContent labMessageContent = new LabMessageContent();
|
|
LabMessageContent labMessageContent = new LabMessageContent();
|
|
@@ -1011,7 +1010,8 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
if (strings != null) {
|
|
if (strings != null) {
|
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text);
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text);
|
|
|
remoteAlarmService.send(alarmEntrty);
|
|
remoteAlarmService.send(alarmEntrty);
|
|
|
- logger.info("化学品发送短信打电话消息推送完成!");
|
|
|
|
|
|
|
+ logger.info("化学品即将过期发送短信打电话消息推送完成!");
|
|
|
|
|
+ logger.info("化学品即将过期发送短信内容:{}",text);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1048,7 +1048,8 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
if (strings != null) {
|
|
if (strings != null) {
|
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text2);
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text2);
|
|
|
remoteAlarmService.send(alarmEntrty);
|
|
remoteAlarmService.send(alarmEntrty);
|
|
|
- logger.info("化学品发送短信打电话消息推送完成!");
|
|
|
|
|
|
|
+ logger.info("化学品已过期发送短信打电话消息推送完成!");
|
|
|
|
|
+ logger.info("化学品已过期发送短信内容:{}",text2);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1147,7 +1148,8 @@ public class HxpStockServiceImpl implements IHxpStockService {
|
|
|
if (strings != null) {
|
|
if (strings != null) {
|
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text);
|
|
AlarmEntrty alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(), text);
|
|
|
remoteAlarmService.send(alarmEntrty);
|
|
remoteAlarmService.send(alarmEntrty);
|
|
|
- logger.info("化学品发送短信打电话消息推送完成!");
|
|
|
|
|
|
|
+ logger.info("化学品超时未归还发送短信打电话消息推送完成!");
|
|
|
|
|
+ logger.info("化学品超时未归还发送短信内容:{}",text);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|