Browse Source

公表项修改

rgb 6 năm trước cách đây
mục cha
commit
8977b341fb

+ 8 - 0
knowledgeman-service/src/main/java/com/diagbot/vo/GetAllLisConceptVO.java

@@ -1,5 +1,7 @@
 package com.diagbot.vo;
 
+import java.util.List;
+
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
@@ -18,6 +20,12 @@ public class GetAllLisConceptVO {
      */
     @ApiModelProperty(value="名称")
     private String conceptName;
+    
+    /**
+     * 排除的名称
+     */
+    @ApiModelProperty(value="排除的名称")
+    private List<String> excludedConceptNames;
    
     
 }

+ 8 - 1
knowledgeman-service/src/main/resources/mapper/ConceptMapper.xml

@@ -26,7 +26,14 @@
 		AND b.type='化验') t
 		WHERE 1=1
 		<if test="conceptName!=null and conceptName!=''">
-			and conceptName LIKE CONCAT('%',#{conceptName},'%')
+			and (conceptName LIKE CONCAT('%',#{conceptName},'%'))
+		</if>
+		<if test="excludedConceptNames!=null and excludedConceptNames.size>0">
+			and (conceptName not in
+			<foreach collection="excludedConceptNames" open="(" close=")" separator="," item="excludedConceptName">
+				#{excludedConceptName}
+			</foreach>
+			)
 		</if>
     </select>