|
|
@@ -21,6 +21,7 @@ import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
+import com.ruoyi.common.utils.CommonUtils;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
@@ -713,7 +714,7 @@ public class ApiController extends BaseController {
|
|
|
}
|
|
|
data.setWavFileUrl("/recordings/files?filename=" + data.getRecordFilename());
|
|
|
apiData.setUuid(data.getUuid());
|
|
|
- apiData.setTelephone(data.getCallee());
|
|
|
+ apiData.setTelephone(CommonUtils.maskPhoneNumber(data.getCallee()));
|
|
|
apiData.setCalloutTime(DateUtils.format(new Date(data.getStartTime()), "yyyy-MM-dd HH:mm:ss"));
|
|
|
if (data.getAnsweredTime() > 0) {
|
|
|
apiData.setAnsweredTime(DateUtils.format(new Date(data.getAnsweredTime()), "yyyy-MM-dd HH:mm:ss"));
|
|
|
@@ -774,7 +775,7 @@ public class ApiController extends BaseController {
|
|
|
}
|
|
|
data.setWavFileUrl("/recordings/files?filename=" + data.getWavFile());
|
|
|
apiData.setUuid(data.getUuid());
|
|
|
- apiData.setTelephone(data.getCaller());
|
|
|
+ apiData.setTelephone(CommonUtils.maskPhoneNumber(data.getCaller()));
|
|
|
apiData.setCalloutTime(DateUtils.format(new Date(data.getInboundTime()), "yyyy-MM-dd HH:mm:ss"));
|
|
|
if (data.getAnsweredTime() > 0) {
|
|
|
apiData.setAnsweredTime(DateUtils.format(new Date(data.getAnsweredTime()), "yyyy-MM-dd HH:mm:ss"));
|
|
|
@@ -857,7 +858,7 @@ public class ApiController extends BaseController {
|
|
|
}
|
|
|
data.setWavfile("/recordings/files?filename=" + data.getWavfile());
|
|
|
apiData.setUuid(data.getUuid());
|
|
|
- apiData.setTelephone(data.getTelephone());
|
|
|
+ apiData.setTelephone(CommonUtils.maskPhoneNumber(data.getTelephone()));
|
|
|
apiData.setCalloutTime(DateUtils.format(new Date(data.getCalloutTime()), "yyyy-MM-dd HH:mm:ss"));
|
|
|
if (data.getAnsweredTime() > 0) {
|
|
|
apiData.setAnsweredTime(DateUtils.format(new Date(data.getAnsweredTime()), "yyyy-MM-dd HH:mm:ss"));
|
|
|
@@ -894,7 +895,7 @@ public class ApiController extends BaseController {
|
|
|
apiData.setTimeLen(Long.valueOf(data.getTimeLen()/1000).intValue());
|
|
|
apiData.setSessionId(data.getId());
|
|
|
apiData.setCallstatus(data.getCallstatus());
|
|
|
- apiData.setCallerNumber(data.getCallerNumber());
|
|
|
+ apiData.setCallerNumber(CommonUtils.maskPhoneNumber(data.getCallerNumber()));
|
|
|
apiData.setManualAnsweredTime(data.getManualAnsweredTime());
|
|
|
apiData.setManualAnsweredTimeLen(data.getManualAnsweredTimeLen());
|
|
|
apiRecords.add(apiData);
|
|
|
@@ -1539,6 +1540,7 @@ public class ApiController extends BaseController {
|
|
|
List<CcOutboundCdr> list = ccOutboundCdrService.selectCcOutboundCdrList(ccOutboundCdr);
|
|
|
for (CcOutboundCdr data: list) {
|
|
|
data.setWavFileUrl("/recordings/files?filename=" + data.getRecordFilename());
|
|
|
+ data.setCallee(CommonUtils.maskPhoneNumber(data.getCallee()));
|
|
|
}
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
@@ -1660,6 +1662,8 @@ public class ApiController extends BaseController {
|
|
|
callPhoneRecord.setWavfile("/recordings/files?filename=" + callPhoneRecord.getWavfile());
|
|
|
}
|
|
|
}
|
|
|
+ callPhoneRecord.setTelephone(CommonUtils.maskPhoneNumber(callPhoneRecord.getTelephone()));
|
|
|
+ callPhoneRecord.setCallerNumber(CommonUtils.maskPhoneNumber(callPhoneRecord.getCallerNumber()));
|
|
|
callPhoneRecord.setCallstatusName( CcCallPhone.getCallStatusName(callPhoneRecord.getCallstatus()));
|
|
|
callPhoneRecord.setCalloutTimeStr(DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", new Date(callPhoneRecord.getCalloutTime())));
|
|
|
callPhoneRecord.setAnsweredTimeStr(DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", new Date(callPhoneRecord.getAnsweredTime())));
|
|
|
@@ -1720,7 +1724,7 @@ public class ApiController extends BaseController {
|
|
|
callPhoneRecord.setTimeLenSec(DateUtils.formatTimeLength(callPhoneRecord.getTimeLen()/1000));
|
|
|
callPhoneRecord.setTimeLenValidStr(DateUtils.formatTimeLength(callPhoneRecord.getTimeLenValid()/1000));
|
|
|
}
|
|
|
-
|
|
|
+ callPhoneRecord.setCallee(CommonUtils.maskPhoneNumber(callPhoneRecord.getCallee()));
|
|
|
});
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
@@ -1760,6 +1764,8 @@ public class ApiController extends BaseController {
|
|
|
if(!CollectionUtils.isEmpty(list)){
|
|
|
//处理下大字段不要传输
|
|
|
list.forEach(callPhoneRecord -> {
|
|
|
+ callPhoneRecord.setTelephone(CommonUtils.maskPhoneNumber(callPhoneRecord.getTelephone()));
|
|
|
+ callPhoneRecord.setCallerNumber(CommonUtils.maskPhoneNumber(callPhoneRecord.getCallerNumber()));
|
|
|
callPhoneRecord.setDialogue(null);
|
|
|
callPhoneRecord.setBizJson(null);
|
|
|
callPhoneRecord.setRecordServerUrl(null);
|