|
@@ -251,9 +251,16 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
relationQe.eq("relation_id", getAllForRelationVO.getRelationId());
|
|
|
|
|
|
List<Long> relationConceptIdList = Lists.newArrayList();
|
|
|
+ List<Long> relationTypeIdList = Lists.newArrayList();
|
|
|
+ if (ListUtil.isNotEmpty(getAllForRelationVO.getRelationTypeIdSupplement())) {
|
|
|
+ relationTypeIdList.addAll(getAllForRelationVO.getRelationTypeIdSupplement());
|
|
|
+ }
|
|
|
if (getAllForRelationVO.getRelationTypeId() != null) {
|
|
|
+ relationTypeIdList.add(getAllForRelationVO.getRelationTypeId());
|
|
|
+ }
|
|
|
+ if (ListUtil.isNotEmpty(relationTypeIdList)) {
|
|
|
QueryWrapper<Concept> conceptQe1 = new QueryWrapper<>();
|
|
|
- conceptQe1.eq("lib_type", getAllForRelationVO.getRelationTypeId());
|
|
|
+ conceptQe1.in("lib_type", relationTypeIdList);
|
|
|
relationConceptIdList = list(conceptQe1)
|
|
|
.stream()
|
|
|
.map(i -> i.getId()).collect(Collectors.toList());
|
|
@@ -261,6 +268,9 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
if (getAllForRelationVO.getRelationConceptId() != null) {
|
|
|
relationConceptIdList.add(getAllForRelationVO.getRelationConceptId());
|
|
|
}
|
|
|
+ if (ListUtil.isNotEmpty(getAllForRelationVO.getRelationConceptIdSupplement())) {
|
|
|
+ relationConceptIdList.addAll(getAllForRelationVO.getRelationConceptIdSupplement());
|
|
|
+ }
|
|
|
if (ListUtil.isNotEmpty(relationConceptIdList)) {
|
|
|
if (getAllForRelationVO.getRelationPosition() == 1) {
|
|
|
relationQe.in("start_id", conceptIdList);
|