|
@@ -599,6 +599,23 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
recent7MonthAndCountsLastYear.add(dayAndCountRes);
|
|
|
}
|
|
|
build.setRecent7MonthAndCountsLastYear(recent7MonthAndCountsLastYear);
|
|
|
+ //本月业务类型 top7 处理
|
|
|
+ List<Top7Res> top7ResList = this.tCallRecordMapper.getTop7ResListByMonthAndSize(nowMonth, DEFAULT_DAYS_QUERY_COUNT+1);
|
|
|
+ //处理展示数据
|
|
|
+ if(!CollectionUtils.isEmpty(top7ResList)) {
|
|
|
+ //获取本月的所有的数据
|
|
|
+ int nowMonthSize = this.tCallRecordMapper.getCallInEqualsMonth(nowMonth);
|
|
|
+ for (int i = 1; i <= top7ResList.size(); i++) {
|
|
|
+ Top7Res top7Res = top7ResList.get(i);
|
|
|
+ top7Res.setIndex(i);
|
|
|
+ if(nowMonthSize > 0)
|
|
|
+ top7Res.setPercent(DecimalUtils.getNLengthHalfUp(BigDecimal.valueOf(top7Res.getTotal() / (double) nowMonthSize).multiply(BigDecimal_100), INT_2));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ build.setBusinessTop7(top7ResList);
|
|
|
+ //今日机器人坐席情况
|
|
|
+
|
|
|
+ //今日人工坐席情况
|
|
|
return build;
|
|
|
}
|
|
|
|