|
@@ -10,7 +10,6 @@ import com.slibra.business.mapper.TCutOffWaterMapper;
|
|
|
import com.slibra.business.mapper.TUserInfoMapper;
|
|
|
import com.slibra.business.res.CallRecordCount;
|
|
|
import com.slibra.business.res.CallUserCountInfo;
|
|
|
-import com.slibra.common.DecimalUtils;
|
|
|
import com.slibra.common.exception.ServiceException;
|
|
|
import com.slibra.common.utils.DateUtils;
|
|
|
import com.slibra.common.utils.SecurityUtils;
|
|
@@ -24,7 +23,6 @@ import com.slibra.business.mapper.TCallRecordMapper;
|
|
|
import com.slibra.business.domain.TCallRecord;
|
|
|
import com.slibra.business.service.ITCallRecordService;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
-import org.springframework.util.NumberUtils;
|
|
|
|
|
|
import static com.slibra.common.constant.MyConstants.LONG_1;
|
|
|
|
|
@@ -288,11 +286,14 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
callRecordCount.setAiTotal(aiTotal);
|
|
|
int traditionTotal = this.tCallRecordMapper.getTotalByIsAi(0);
|
|
|
callRecordCount.setTraditionTotal(traditionTotal);
|
|
|
+ int traditionOutTotal = this.tCallRecordMapper.getTotalByIsAi(2);
|
|
|
+ callRecordCount.setTraditionOutTotal(traditionOutTotal);
|
|
|
if(total > 0){
|
|
|
- callRecordCount.setHumanPercent((double)humanTotal / total);
|
|
|
- callRecordCount.setWhiteListPercent((double)whiteListTotal / total);
|
|
|
- callRecordCount.setAiPercent((double)aiTotal / total);
|
|
|
- callRecordCount.setTraditionPercent((double)traditionTotal / total);
|
|
|
+ callRecordCount.setHumanPercent(humanTotal / (double)total);
|
|
|
+ callRecordCount.setWhiteListPercent(whiteListTotal / (double)total);
|
|
|
+ callRecordCount.setAiPercent(aiTotal / (double)total);
|
|
|
+ //2024年12月19日15:11:01 这里的百分比逻辑改成:traditionTotal + traditionOutTotal
|
|
|
+ callRecordCount.setTraditionPercent((traditionTotal + traditionOutTotal) / (double)total);
|
|
|
}
|
|
|
callRecordCount.setSpecialCount(this.tCallRecordMapper.getSpecialCount());
|
|
|
int transferCount = this.tCallRecordMapper.getTransferCount(null, null);
|
|
@@ -331,10 +332,10 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
if(StringUtils.isNotBlank(userId)){
|
|
|
callUserCountInfo.setStatus(this.tCallRecordMapper.getStatusByUserId(userId));
|
|
|
callUserCountInfo.setTotalTimes(this.tCallRecordMapper.getPersonTotalRecordIsRobot(0, userId));
|
|
|
- callUserCountInfo.setInTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(0, date));
|
|
|
- callUserCountInfo.setInAllCount(this.tCallRecordMapper.getCountByTypeAndDate(0, null));
|
|
|
- callUserCountInfo.setOutTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(1, date));
|
|
|
- callUserCountInfo.setOutAllCount(this.tCallRecordMapper.getCountByTypeAndDate(1, null));
|
|
|
+ callUserCountInfo.setInTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(0, date, userId));
|
|
|
+ callUserCountInfo.setInAllCount(this.tCallRecordMapper.getCountByTypeAndDate(0, null, userId));
|
|
|
+ callUserCountInfo.setOutTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(1, date, userId));
|
|
|
+ callUserCountInfo.setOutAllCount(this.tCallRecordMapper.getCountByTypeAndDate(1, null, userId));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -356,8 +357,8 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
if(StringUtils.isNotBlank(userId)){
|
|
|
// callUserCountInfo.setStatus(this.tCallRecordMapper.getStatusByUserId(userId));
|
|
|
// callUserCountInfo.setTotalTimes(this.tCallRecordMapper.getPersonTotalRecordIsRobot(1, userId));
|
|
|
- callUserCountInfo.setInTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(0, date));
|
|
|
- callUserCountInfo.setInAllCount(this.tCallRecordMapper.getCountByTypeAndDate(0, null));
|
|
|
+ callUserCountInfo.setInTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(0, date, userId));
|
|
|
+ callUserCountInfo.setInAllCount(this.tCallRecordMapper.getCountByTypeAndDate(0, null, userId));
|
|
|
// callUserCountInfo.setOutTodayCount(this.tCallRecordMapper.getCountByTypeAndDate(1, date));
|
|
|
// callUserCountInfo.setOutAllCount(this.tCallRecordMapper.getCountByTypeAndDate(1, null));
|
|
|
callUserCountInfo.setTodayTransferCount(this.tCallRecordMapper.getTransferCount(userId, date));
|