|
|
@@ -882,6 +882,16 @@ public class CorpServiceImpl implements CorpService {
|
|
|
transCorpKfSessionToServicer(corpId, openKfId, null, servicerUserid, externalUserid, null, 3, sendDate, msgid);
|
|
|
return;
|
|
|
}
|
|
|
+ //移入未接入的客服
|
|
|
+ List<String> collect = corpKfServicerDtos.stream().map(CorpKfServicerDto::getServicerUserid).collect(Collectors.toList());
|
|
|
+ corpKfServiceIds.forEach(serviceId -> {
|
|
|
+ if (!collect.contains(serviceId)) {
|
|
|
+ CorpKfServicerDto corpKfServicerDto = new CorpKfServicerDto();
|
|
|
+ corpKfServicerDto.setServicerUserid(serviceId);
|
|
|
+ corpKfServicerDto.setNum(0);
|
|
|
+ corpKfServicerDtos.add(corpKfServicerDto);
|
|
|
+ }
|
|
|
+ });
|
|
|
//筛选符合条件的客服
|
|
|
//默认接入最少的优先分配 接待人最少的在集合前面
|
|
|
//不超过最多接待人数 默认30
|