Commit 8cc986aa authored by 赵啸非's avatar 赵啸非

添加消息发送系统

parent c3ef756a
......@@ -242,6 +242,10 @@
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.1.193</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<!-- Spring Boot Data Elasticsearch依赖 -->
......
......@@ -170,6 +170,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
Long diff = DateUtil.between(item.getTakeTime(), finPersonInfo.getCalltime(), DateUnit.SECOND);
if (!ObjectUtils.isEmpty(finPersonInfo.getAvgWaitTime())) {
int avgWait = finPersonInfo.getAvgWaitTime();
item.setWaitDureAlarmAvl(avgWait);
if (avgWait > 0
&& diff > avgWait) {
//todo 构造发送消息。
......@@ -197,6 +198,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
//判断是否大于平均等待时间,如果大于 则预警消息
item.setWaitTime(diff.intValue());
item.setWindowNum(finPersonInfo.getWindowNum());
item.setWorkman(finPersonInfo.getWorkmanName());
......@@ -228,6 +230,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
if (!ObjectUtils.isEmpty(endPersonInfo.getAvgHandleTime())) {
int avgWait = endPersonInfo.getAvgHandleTime();
item.setEndDureAlarmAvl(avgWait);
if (avgWait > 0
&& diff > avgWait) {
//todo 构造发送消息。
......
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