|
|
@@ -11,7 +11,6 @@ import com.cyksj.mapper.corp.CorpFollowServiceRelateMapper;
|
|
|
import com.cyksj.mapper.corp.CorpTagMapper;
|
|
|
import com.cyksj.model.dto.CorpFollowActiveCodeDto;
|
|
|
import com.cyksj.model.entity.CorpFollowConfig;
|
|
|
-import com.cyksj.model.entity.CorpFollowDutyRelate;
|
|
|
import com.cyksj.model.entity.CorpFollowServiceRelate;
|
|
|
import com.cyksj.model.entity.CorpTag;
|
|
|
import com.cyksj.model.request.corp.CorpFollowContact;
|
|
|
@@ -81,8 +80,8 @@ public class CorpFollowDynamicConfigServiceImpl implements CorpFollowDynamicConf
|
|
|
CorpFollowActiveCodeDto corpFollowActiveCodeDto = createCorpFollowActiveCode(followIds, state, type, serviceNames);
|
|
|
codeList.add(corpFollowActiveCodeDto);
|
|
|
} else {
|
|
|
- Map<String, List<CorpFollowDutyRelate>> collect = corpFollowDutyRelateMapper.selectList(Wrappers.lambdaQuery(CorpFollowDutyRelate.class)
|
|
|
- .in(CorpFollowDutyRelate::getFollowId, followIds)).stream().collect(Collectors.groupingBy(CorpFollowDutyRelate::getFollowId));
|
|
|
+ Map<String, List<CorpFollowServiceRelate>> collect = serviceRelateMapper.selectList(Wrappers.lambdaQuery(CorpFollowServiceRelate.class)
|
|
|
+ .in(CorpFollowServiceRelate::getFollowId, followIds)).stream().collect(Collectors.groupingBy(CorpFollowServiceRelate::getFollowId));
|
|
|
if (collect.keySet().size() != followIds.size()) {
|
|
|
throw BusinessRuntimeException.getInstance("存在被删除的客服,请刷新页面重试");
|
|
|
}
|