|
@@ -219,7 +219,7 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
|
|
|
@Override
|
|
|
public List<UserTypeResp> getAgentList() {
|
|
|
- List<UserTypeResp> agentList = this.tCallRecordMapper.getAgentList();
|
|
|
+
|
|
|
if(!CollectionUtils.isEmpty(agentList)){
|
|
|
for (UserTypeResp userTypeResp : agentList) {
|
|
|
Long serviceCategory = userTypeResp.getServiceCategory();
|
|
@@ -233,6 +233,23 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ return agentList;*/
|
|
|
+
|
|
|
+ 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;
|
|
|
}
|
|
|
|