Commit c512eea5 authored by 赵啸非's avatar 赵啸非

添加消息发送

parent 9e280787
......@@ -221,7 +221,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
double doTime = NumberUtil.div(Double.parseDouble((diff) + ""), 60, 1); // 保留1位小数,四舍五入
double upTime = NumberUtil.div(Double.parseDouble((diff - avgWait) + ""), 60, 1); // 保留1位小数,四舍五入
String alarmContent = String.format("排队编号:%s:,%s业务叫号等待时间为%d分钟,超过了平均等待时长%d分钟!",
String alarmContent = String.format("排队编号:%s:,%s业务叫号等待时间为%.1f分钟,超过了平均等待时长%.1f分钟!",
item.getQueueNo(), item.getBussinessName(), doTime, upTime);
recordsEntity.setAlarmContent(alarmContent);
recordsEntity.setAlarmTime(new Date());
......@@ -269,7 +269,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
double doTime = NumberUtil.div(Double.parseDouble((diff) + ""), 60, 1); // 保留1位小数,四舍五入
double upTime = NumberUtil.div(Double.parseDouble((diff - avgWait) + ""), 60, 1); // 保留1位小数,四舍五入
String alarmContent = String.format("编号:%s:,%s业务办理时间为%d分钟,超过了平均办理时长%d分钟!", item.getBussinessName(), doTime, upTime);
String alarmContent = String.format("编号:%s:,%s业务办理时间为%.1f分钟,超过了平均办理时长%.1f分钟!", item.getBussinessName(), doTime, upTime);
recordsEntity.setAlarmContent(alarmContent);
recordsEntity.setAlarmTime(new Date());
recordsEntity.setCreateTime(new Date());
......
......@@ -45,7 +45,7 @@ public class AlarmSendMsgThread extends AbstractThread {
@Override
protected void process() {
log.info("AlarmSendMsgThread process");
// log.info("AlarmSendMsgThread process");
recordsService=SpringUtils.getBean(AlarmRecordsService.class);
rabbitTemplate = SpringUtils.getBean(RabbitTemplate.class);
......
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