|
@@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
@@ -286,4 +287,18 @@ public class RelationContactFacade extends KlRelationServiceImpl {
|
|
|
List<KlConcept> diseaseAll = klDiseaseFacade.getDiseaseAll(diseaseDeleteVO);
|
|
|
return diseaseAll;
|
|
|
}
|
|
|
+
|
|
|
+ public List<String> searchAndPosition(GetAllForRelationVO getAllForRelationVO) {
|
|
|
+ List<String> names = Lists.newArrayList();
|
|
|
+ String name = getAllForRelationVO.getName();
|
|
|
+ Long typeId = getAllForRelationVO.getTypeId();
|
|
|
+ List<KlConcept> klConcepts = klConceptFacade.list(new QueryWrapper<KlConcept>()
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .like("lib_name", name.trim())
|
|
|
+ .eq("lib_type", typeId));
|
|
|
+ names = klConcepts.stream().map(x -> x.getLibName()).collect(Collectors.toList());
|
|
|
+
|
|
|
+ return names;
|
|
|
+
|
|
|
+ }
|
|
|
}
|