|
@@ -611,9 +611,9 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
if(!CollectionUtils.isEmpty(top7ResList)) {
|
|
|
//获取本月的所有的数据
|
|
|
int nowMonthSize = this.tCallRecordMapper.getCallInEqualsMonth(nowMonth);
|
|
|
- for (int i = 1; i <= top7ResList.size(); i++) {
|
|
|
+ for (int i = 0; i < top7ResList.size(); i++) {
|
|
|
Top7Res top7Res = top7ResList.get(i);
|
|
|
- top7Res.setIndex(i);
|
|
|
+ top7Res.setIndex(i+1);
|
|
|
if(nowMonthSize > 0)
|
|
|
top7Res.setPercent(DecimalUtils.getNLengthHalfUp(BigDecimal.valueOf(top7Res.getTotal() / (double) nowMonthSize).multiply(BigDecimal_100), INT_2));
|
|
|
}
|