|
|
@@ -1,6 +1,7 @@
|
|
|
package com.lc.ibps.org.party.repository.impl;
|
|
|
|
|
|
import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
@@ -776,4 +777,31 @@ public class PartyEntityRepositoryImpl extends AbstractRepository<String, PartyE
|
|
|
return byKey;
|
|
|
//return getByIdPartyType(id,"position");
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<PartyEntityPo> findId(List<String> id) {
|
|
|
+ HashMap<String, Object> map = new HashMap<>();
|
|
|
+ map.put("str",id);
|
|
|
+ List<PartyEntityPo> entityPos = new ArrayList<>();
|
|
|
+ List<PartyEntityPo> byKey = partyEntityQueryDao.findByKey("findId",map);
|
|
|
+ HashMap<String, Object> mapSj = new HashMap<>();
|
|
|
+ List<String> objects = new ArrayList<>();
|
|
|
+ for(int i=0;i<byKey.size();i++){
|
|
|
+ String path = byKey.get(i).getPath();
|
|
|
+ String all = path.replace(".", "-");
|
|
|
+ String[] split = all.split("-");
|
|
|
+
|
|
|
+ List<String> stringList = Arrays.asList(split);
|
|
|
+
|
|
|
+ objects.addAll(stringList);
|
|
|
+ }
|
|
|
+ //去重
|
|
|
+ objects.stream().distinct().collect(Collectors.toList());
|
|
|
+ mapSj.put("str", objects);
|
|
|
+ List<PartyEntityPo> sunPo = partyEntityQueryDao.findByKey("findId",mapSj);
|
|
|
+ entityPos.addAll(sunPo);
|
|
|
+ return entityPos;
|
|
|
+ //return getByIdPartyType(id,"position");
|
|
|
+ }
|
|
|
+
|
|
|
}
|