|
@@ -11,6 +11,7 @@ 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.business.res.UserTypeResp;
|
|
|
import com.slibra.common.DecimalUtils;
|
|
|
import com.slibra.common.core.domain.entity.SysUser;
|
|
|
import com.slibra.common.exception.ServiceException;
|
|
@@ -217,8 +218,22 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<HashMap<String, Object>> getAgentList() {
|
|
|
- return this.tCallRecordMapper.getAgentList();
|
|
|
+ public List<UserTypeResp> getAgentList() {
|
|
|
+ List<UserTypeResp> agentList = this.tCallRecordMapper.getAgentList();
|
|
|
+ if(!CollectionUtils.isEmpty(agentList)){
|
|
|
+ for (UserTypeResp userTypeResp : agentList) {
|
|
|
+ Long serviceCategory = userTypeResp.getServiceCategory();
|
|
|
+ if(!Objects.isNull(serviceCategory) && 0L == serviceCategory){//人工 需要特殊处理
|
|
|
+ Long id = userTypeResp.getId();
|
|
|
+ if(!Objects.isNull(id)){
|
|
|
+ SysUser sysUser = this.sysUserMapper.selectUserById(id);
|
|
|
+ if(!Objects.isNull(sysUser))
|
|
|
+ userTypeResp.setName(sysUser.getNickName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return agentList;
|
|
|
}
|
|
|
|
|
|
/**
|