|
@@ -9,10 +9,7 @@ import com.slibra.business.domain.TCutOffWater;
|
|
import com.slibra.business.domain.TUserInfo;
|
|
import com.slibra.business.domain.TUserInfo;
|
|
import com.slibra.business.mapper.TCutOffWaterMapper;
|
|
import com.slibra.business.mapper.TCutOffWaterMapper;
|
|
import com.slibra.business.mapper.TUserInfoMapper;
|
|
import com.slibra.business.mapper.TUserInfoMapper;
|
|
-import com.slibra.business.res.CallRecordCount;
|
|
|
|
-import com.slibra.business.res.CallRecordListResp;
|
|
|
|
-import com.slibra.business.res.CallUserCountInfo;
|
|
|
|
-import com.slibra.business.res.UserTypeResp;
|
|
|
|
|
|
+import com.slibra.business.res.*;
|
|
import com.slibra.common.DecimalUtils;
|
|
import com.slibra.common.DecimalUtils;
|
|
import com.slibra.common.core.domain.entity.SysUser;
|
|
import com.slibra.common.core.domain.entity.SysUser;
|
|
import com.slibra.common.exception.ServiceException;
|
|
import com.slibra.common.exception.ServiceException;
|
|
@@ -503,18 +500,18 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
//根据日期获取统计数据
|
|
//根据日期获取统计数据
|
|
//请求参数type说明: 0:接通总量 1:未接通总量 2:机器人接听 3:机器人转人工 4:人工接听 5:机器人处理量 6:人工处理量
|
|
//请求参数type说明: 0:接通总量 1:未接通总量 2:机器人接听 3:机器人转人工 4:人工接听 5:机器人处理量 6:人工处理量
|
|
//呼入总量
|
|
//呼入总量
|
|
- int inTotal = this.tCallRecordMapper.getTotalInByType(null);
|
|
|
|
|
|
+ int inTotal = this.tCallRecordMapper.getTotalInByType(null, date);
|
|
callRecordListResp.setInTotal(inTotal);
|
|
callRecordListResp.setInTotal(inTotal);
|
|
- callRecordListResp.setSuccessTotal(this.tCallRecordMapper.getTotalInByType(0));
|
|
|
|
- callRecordListResp.setFailTotal(this.tCallRecordMapper.getTotalInByType(1));
|
|
|
|
- callRecordListResp.setRobotHearTotal(this.tCallRecordMapper.getTotalInByType(2));
|
|
|
|
- callRecordListResp.setTransferTotal(this.tCallRecordMapper.getTotalInByType(3));
|
|
|
|
- callRecordListResp.setHumanTotal(this.tCallRecordMapper.getTotalInByType(4));
|
|
|
|
|
|
+ callRecordListResp.setSuccessTotal(this.tCallRecordMapper.getTotalInByType(0, date));
|
|
|
|
+ callRecordListResp.setFailTotal(this.tCallRecordMapper.getTotalInByType(1, date));
|
|
|
|
+ callRecordListResp.setRobotHearTotal(this.tCallRecordMapper.getTotalInByType(2, date));
|
|
|
|
+ callRecordListResp.setTransferTotal(this.tCallRecordMapper.getTotalInByType(3, date));
|
|
|
|
+ callRecordListResp.setHumanTotal(this.tCallRecordMapper.getTotalInByType(4, date));
|
|
//机器人处理量
|
|
//机器人处理量
|
|
- int robotHandleTotal = this.tCallRecordMapper.getTotalInByType(5);
|
|
|
|
|
|
+ int robotHandleTotal = this.tCallRecordMapper.getTotalInByType(5, date);
|
|
callRecordListResp.setRobotHandleTotal(robotHandleTotal);
|
|
callRecordListResp.setRobotHandleTotal(robotHandleTotal);
|
|
//人工处理量
|
|
//人工处理量
|
|
- int humanHandleTotal = this.tCallRecordMapper.getTotalInByType(6);
|
|
|
|
|
|
+ int humanHandleTotal = this.tCallRecordMapper.getTotalInByType(6, date);
|
|
callRecordListResp.setHumanHandleTotal(humanHandleTotal);
|
|
callRecordListResp.setHumanHandleTotal(humanHandleTotal);
|
|
//处理 占比
|
|
//处理 占比
|
|
if(inTotal > 0){
|
|
if(inTotal > 0){
|
|
@@ -530,6 +527,13 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public HomeCountResp homeScreenCount() {
|
|
|
|
+ HomeCountResp build = HomeCountResp.builder().build();
|
|
|
|
+
|
|
|
|
+ return build;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 校验数据
|
|
* 校验数据
|