|
@@ -80,9 +80,12 @@ public class RelationContactFacade extends KlRelationServiceImpl {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- List<KlRelation> relationList = this.list(new QueryWrapper<KlRelation>()
|
|
|
- .in("start_id", sids)
|
|
|
- .eq("relation_id", rid));
|
|
|
+ List<KlRelation> relationList = Lists.newArrayList();
|
|
|
+ if(ListUtil.isNotEmpty(sids)){
|
|
|
+ relationList = this.list(new QueryWrapper<KlRelation>()
|
|
|
+ .in("start_id", sids)
|
|
|
+ .eq("relation_id", rid));
|
|
|
+ }
|
|
|
List<Long> ids = relationList.stream().map(x -> x.getId()).collect(Collectors.toList());
|
|
|
//先删除
|
|
|
if (ListUtil.isNotEmpty(ids)) {
|