Bläddra i källkod

检索类型为化验时,搜索类型是12,13的

wangyu 6 år sedan
förälder
incheckning
cdf8658f8f

+ 10 - 1
aipt-service/src/main/java/com/diagbot/facade/ConceptFacade.java

@@ -214,8 +214,17 @@ public class ConceptFacade extends ConceptServiceImpl {
      * @return
      */
     public List<ConceptRetrievalDTO> retrivelConceptInfo(RetrievalVO retrievalVO){
+        List<Integer> typeList = new ArrayList<>();
         if (null != retrievalVO.getType()){
-            retrievalVO.setType(ParamConvertUtil.conceptConvert2Lib(retrievalVO.getType()));//标签类型
+            for (Integer type: retrievalVO.getType()) {
+                if(type.intValue() == ConceptTypeEnum.Lis.getKey()){//如果是化验,检索类型包括套餐和明细项
+                    typeList.add(LexiconTypeEnum.LIS_PACKAGE.getKey());
+                    typeList.add(LexiconTypeEnum.LIS_DETAILS.getKey());
+                } else{
+                    typeList.add(ParamConvertUtil.conceptConvert2Lib(type));//标签类型
+                }
+            }
+            retrievalVO.setType(typeList);
         }
         List<ConceptRetrievalDTO> conceptRetrievalDTOS = this.retrievalConcept(retrievalVO);
         //把本体的sameName过滤掉

+ 1 - 1
aipt-service/src/main/java/com/diagbot/vo/RetrievalVO.java

@@ -14,7 +14,7 @@ import java.util.List;
 @Getter
 @Setter
 public class RetrievalVO {
-    private Integer type;
+    private List<Integer> type;
     private Integer age;
     @NotNull(message = "请输入症状")
     private String InputStr;

+ 27 - 6
aipt-service/src/main/resources/mapper/ConceptMapper.xml

@@ -201,8 +201,12 @@
         AND t4.is_deleted = 'N'
         AND t5.is_deleted = 'N'
         AND t6.is_deleted = 'N'
+        AND t2.is_concept = 1
         <if test="type != null">
-            AND t1.lib_type = #{type}
+            AND t1.lib_type in
+            <foreach item="type" collection="type" open="(" separator="," close=")">
+                #{type}
+            </foreach>
         </if>
         <if test="sexType == 3">
         and t3.sex_type in ('1','2','3')
@@ -236,8 +240,12 @@
         AND t4.is_deleted = 'N'
         AND t5.is_deleted = 'N'
         AND t6.is_deleted = 'N'
+        AND t2.is_concept = 1
         <if test="type != null">
-            AND t1.lib_type = #{type}
+            AND t1.lib_type in
+            <foreach item="type" collection="type" open="(" separator="," close=")">
+                #{type}
+            </foreach>
         </if>
         <if test="sexType == 3">
             and t3.sex_type in ('1','2','3')
@@ -271,8 +279,12 @@
         AND t4.is_deleted = 'N'
         AND t5.is_deleted = 'N'
         AND t6.is_deleted = 'N'
+        AND t2.is_concept = 1
         <if test="type != null">
-            AND t1.lib_type = #{type}
+            AND t1.lib_type in
+            <foreach item="type" collection="type" open="(" separator="," close=")">
+                #{type}
+            </foreach>
         </if>
         <if test="sexType == 3">
             and t3.sex_type in ('1','2','3')
@@ -303,7 +315,10 @@
         AND t3.is_deleted = 'N'
         AND t6.is_deleted = 'N'
         <if test="type != null">
-            AND t1.lib_type = #{type}
+            AND t1.lib_type in
+            <foreach item="type" collection="type" open="(" separator="," close=")">
+                #{type}
+            </foreach>
         </if>
         <if test="sexType == 3">
         and t3.sex_type in ('1','2','3')
@@ -333,7 +348,10 @@
         AND t3.is_deleted = 'N'
         AND t6.is_deleted = 'N'
         <if test="type != null">
-            AND t1.lib_type = #{type}
+            AND t1.lib_type in
+            <foreach item="type" collection="type" open="(" separator="," close=")">
+                #{type}
+            </foreach>
         </if>
         <if test="sexType == 3">
             and t3.sex_type in ('1','2','3')
@@ -363,7 +381,10 @@
         AND t3.is_deleted = 'N'
         AND t6.is_deleted = 'N'
         <if test="type != null">
-            AND t1.lib_type = #{type}
+            AND t1.lib_type in
+            <foreach item="type" collection="type" open="(" separator="," close=")">
+                #{type}
+            </foreach>
         </if>
         <if test="sexType == 3">
             and t3.sex_type in ('1','2','3')

+ 1 - 1
icss-service/src/main/java/com/diagbot/vo/RetrievalVO.java

@@ -16,7 +16,7 @@ import java.util.List;
 public class RetrievalVO {
 
     @NotNull(message = "请输入标签类型")
-    private Integer type;
+    private List<Integer> type;
     @NotNull(message = "请输入病人年龄")
     private Integer age;
     @NotNull(message = "请输入症状")

+ 1 - 1
triage-service/src/main/java/com/diagbot/vo/RetrievalVO.java

@@ -16,7 +16,7 @@ import java.util.List;
 public class RetrievalVO {
 
     @NotNull(message = "请输入标签类型")
-    private Integer type;
+    private List<Integer> type;
     @NotNull(message = "请输入病人年龄")
     private Integer age;
     @NotNull(message = "请输入症状")