|
@@ -219,7 +219,7 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<UserTypeResp> getAgentList() {
|
|
public List<UserTypeResp> getAgentList() {
|
|
- List<UserTypeResp> agentList = this.tCallRecordMapper.getAgentList();
|
|
|
|
|
|
+ /*List<UserTypeResp> agentList = this.tCallRecordMapper.getAgentList();
|
|
if(!CollectionUtils.isEmpty(agentList)){
|
|
if(!CollectionUtils.isEmpty(agentList)){
|
|
for (UserTypeResp userTypeResp : agentList) {
|
|
for (UserTypeResp userTypeResp : agentList) {
|
|
Long serviceCategory = userTypeResp.getServiceCategory();
|
|
Long serviceCategory = userTypeResp.getServiceCategory();
|
|
@@ -233,6 +233,23 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ return agentList;*/
|
|
|
|
+ //2025年01月08日14:00:15 因为人工坐席已经全部记录下来了,无需从通话记录再获取
|
|
|
|
+ List<UserTypeResp> agentList = this.tCallRecordMapper.getAgentList();
|
|
|
|
+ //人工姓名再外处理下,防止有其他修改昵称的地方而没有处理
|
|
|
|
+ if(!CollectionUtils.isEmpty(agentList)){
|
|
|
|
+ for (UserTypeResp userTypeResp : agentList) {
|
|
|
|
+ Integer type = userTypeResp.getType();
|
|
|
|
+ if(!Objects.isNull(type) && 0 == type){//人工 需要特殊处理
|
|
|
|
+ Long id = userTypeResp.getId();
|
|
|
|
+ if(!Objects.isNull(id)){
|
|
|
|
+ SysUser sysUser = this.sysUserMapper.selectUserById(id);
|
|
|
|
+ if(!Objects.isNull(sysUser))
|
|
|
|
+ userTypeResp.setName(sysUser.getNickName());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return agentList;
|
|
return agentList;
|
|
}
|
|
}
|
|
|
|
|