|
@@ -337,7 +337,7 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
}
|
|
|
String userId = callUserCountInfo.getUserId();
|
|
|
if(StringUtils.isNotBlank(userId)){
|
|
|
- callUserCountInfo.setStatus(this.tCallRecordMapper.getStatusByUserId(userId));
|
|
|
+ callUserCountInfo.setStatus(this.parseStatus(this.tCallRecordMapper.getStatusByUserId(userId)));
|
|
|
callUserCountInfo.setTotalTimes(this.tCallRecordMapper.getPersonTotalRecordIsRobot(0, userId));
|
|
|
callUserCountInfo.setInTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(0, date, userId));
|
|
|
callUserCountInfo.setInAllCount(this.tCallRecordMapper.getCountByTypeAndDate(0, null, userId));
|
|
@@ -349,6 +349,22 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ private String parseStatus(Integer status) {
|
|
|
+ if(Objects.isNull(status))
|
|
|
+ return "";
|
|
|
+ switch (status) {
|
|
|
+ case 0: return "签出";
|
|
|
+ case 1: return "置忙";
|
|
|
+ case 2: return "置闲";
|
|
|
+ case 3: return "通话中";
|
|
|
+ case 4: return "后处理";
|
|
|
+ case 5: return "拨号中";
|
|
|
+ default:return "";
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public List<CallUserCountInfo> robotCallCount() {
|
|
|
//先获取所有的机器人信息 再查状态 再统计数据
|