Browse Source

1、术语检索

zhaops 4 years ago
parent
commit
b129e2486f

+ 4 - 1
src/main/java/com/diagbot/service/impl/KlConceptServiceImpl.java

@@ -25,15 +25,18 @@ import java.util.List;
 @Service
 public class KlConceptServiceImpl extends ServiceImpl<KlConceptMapper, KlConcept> implements KlConceptService {
 
+    @Override
     public List<IndexDTO> index(MedRetrievalVO medRetrievalVO) {
         return baseMapper.index(medRetrievalVO);
     }
 
+    @Override
     public List<StaticKnowledgeIndexDTO> staticIndex(StaticKnowledgeIndexVO staticKnowledgeIndexVO) {
         return baseMapper.staticIndex(staticKnowledgeIndexVO);
     }
 
-    public List<KllisDetailDTO> getLisDetaisByNames(KllisDetailVO kllisDetailVO){
+    @Override
+    public List<KllisDetailDTO> getLisDetaisByNames(KllisDetailVO kllisDetailVO) {
         return baseMapper.getLisDetaisByNames(kllisDetailVO);
     }
 }

+ 3 - 0
src/main/resources/mapper/KlConceptMapper.xml

@@ -75,6 +75,7 @@
 		AND b.is_deleted = 'N'
 		AND a.concept_id = b.id
 		AND a.id = b.lib_id
+		AND b.status = 1
 		<if test="inputStr!=null and inputStr!=''">
 			AND ( a.`name` = #{inputStr} OR LOWER(a.spell) = LOWER(#{inputStr})
 			<if test="typeId!=null and typeId==100">
@@ -129,6 +130,7 @@
 		AND b.is_deleted = 'N'
 		AND a.concept_id = b.id
 		AND a.id = b.lib_id
+		AND b.status = 1
 		<if test="inputStr!=null and inputStr!=''">
 			AND ( a.`name` LIKE concat(#{inputStr},'%') OR LOWER(a.spell) LIKE LOWER(concat(#{inputStr},'%'))
 			<if test="typeId!=null and typeId==100">
@@ -183,6 +185,7 @@
 		AND b.is_deleted = 'N'
 		AND a.concept_id = b.id
 		AND a.id = b.lib_id
+		AND b.status = 1
 		<if test="inputStr!=null and inputStr!=''">
 			AND ( a.`name` LIKE concat('%',#{inputStr},'%') OR LOWER(a.spell) LIKE LOWER( concat('%',#{inputStr},'%'))
 			<if test="typeId!=null and typeId==100">