|
@@ -513,7 +513,8 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
//呼入总量
|
|
|
int inTotal = this.tCallRecordMapper.getTotalInByType(null, date);
|
|
|
callRecordListResp.setInTotal(inTotal);
|
|
|
- callRecordListResp.setSuccessTotal(this.tCallRecordMapper.getTotalInByType(0, date));
|
|
|
+ int successTotal = this.tCallRecordMapper.getTotalInByType(0, date);
|
|
|
+ callRecordListResp.setSuccessTotal(successTotal);
|
|
|
callRecordListResp.setFailTotal(this.tCallRecordMapper.getTotalInByType(1, date));
|
|
|
callRecordListResp.setRobotHearTotal(this.tCallRecordMapper.getTotalInByType(2, date));
|
|
|
callRecordListResp.setTransferTotal(this.tCallRecordMapper.getTotalInByType(3, date));
|
|
@@ -524,13 +525,26 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
//人工处理量
|
|
|
int humanHandleTotal = this.tCallRecordMapper.getTotalInByType(6, date);
|
|
|
callRecordListResp.setHumanHandleTotal(humanHandleTotal);
|
|
|
- //处理 占比
|
|
|
+ //2025年02月17日16:28:14 新增新的统计
|
|
|
+ //AI处理量
|
|
|
+ int aiTotal = this.tCallRecordMapper.getTotalInByType(7, date);
|
|
|
+ callRecordListResp.setAiTotal(aiTotal);
|
|
|
+ //AI转人工处理量
|
|
|
+ int aiToHuman = this.tCallRecordMapper.getTotalInByType(8, date);
|
|
|
+ callRecordListResp.setAiToHuman(aiToHuman);
|
|
|
+ //人工处理量(含转人工)
|
|
|
+ int humanAndTransferTotal =this.tCallRecordMapper.getTotalInByType(9, date);
|
|
|
+ callRecordListResp.setHumanAndTransferTotal(humanAndTransferTotal);
|
|
|
+
|
|
|
if(inTotal > 0){
|
|
|
BigDecimal robotRate = DecimalUtils.getNLengthHalfUp(new BigDecimal(robotHandleTotal/(double)inTotal).multiply(BigDecimal_100), INT_2);
|
|
|
BigDecimal humanRate = DecimalUtils.getNLengthHalfUp(new BigDecimal(humanHandleTotal/(double)inTotal).multiply(BigDecimal_100), INT_2);
|
|
|
callRecordListResp.setRobotRate(robotRate);
|
|
|
callRecordListResp.setHumanRate(humanRate);
|
|
|
callRecordListResp.setFailRate(DecimalUtils.getNLengthHalfUp(BigDecimal_100.subtract(robotRate).subtract(humanRate), INT_2));
|
|
|
+ //2025年02月17日16:28:14 新增新的统计-占比
|
|
|
+ callRecordListResp.setAiRate(DecimalUtils.getNLengthHalfUp(new BigDecimal(aiTotal/(double)inTotal).multiply(BigDecimal_100), INT_2));
|
|
|
+ callRecordListResp.setSuccessRate(DecimalUtils.getNLengthHalfUp(new BigDecimal(successTotal/(double)inTotal).multiply(BigDecimal_100), INT_2));
|
|
|
}
|
|
|
result.add(callRecordListResp);
|
|
|
}
|