Commit 9b640a33 authored by 赵啸非's avatar 赵啸非

添加消息发送

parent 9d0d6303
......@@ -216,7 +216,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
//todo 构造发送消息。
AlarmRecordsEntity recordsEntity = new AlarmRecordsEntity();
recordsEntity.initAttrValue();
String alarmContent = String.format("排队编号:%s:,%s业务叫号等待时间为%d分钟,超过了平均等待时长%d分钟!", item.getQueueNo(), item.getBussinessName(),diff - avgWait);
String alarmContent = String.format("排队编号:%s:,%s业务叫号等待时间为%d分钟,超过了平均等待时长%d分钟!", item.getQueueNo(), item.getBussinessName(),diff,diff - avgWait+1);
recordsEntity.setAlarmContent(alarmContent);
recordsEntity.setAlarmTime(new Date());
recordsEntity.setCreateTime(new Date());
......@@ -259,7 +259,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
//todo 构造发送消息。
AlarmRecordsEntity recordsEntity = new AlarmRecordsEntity();
recordsEntity.initAttrValue();
String alarmContent = String.format("编号:%s:,%s业务办理时间为%d分钟,超过了平均办理时长%d分钟!", item.getBussinessName(),diff - avgWait);
String alarmContent = String.format("编号:%s:,%s业务办理时间为%d分钟,超过了平均办理时长%d分钟!", item.getBussinessName(),diff,diff - avgWait+1);
recordsEntity.setAlarmContent(alarmContent);
recordsEntity.setAlarmTime(new Date());
recordsEntity.setCreateTime(new Date());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment