Quellcode durchsuchen

浙江医院质控整改

gaodm vor 5 Jahren
Ursprung
Commit
f6e455ae24

+ 2 - 0
knowledgeman-service/src/main/java/com/diagbot/service/impl/EnumsDataServiceImpl.java

@@ -56,6 +56,8 @@ public class EnumsDataServiceImpl implements EnumsDataService {
                         LexiconTypeEnum.PACS_ITEMS, LexiconTypeEnum.DRUGS,
                         LexiconTypeEnum.SIDE_EFFECTS, LexiconTypeEnum.SYMPTOM,
                         LexiconTypeEnum.OPERATION)
+                .addEnums("conceptDetailLisPacsOnlyEnum",
+                        LexiconTypeEnum.LIS_TABLES, LexiconTypeEnum.PACS_ITEMS)
                 .addEnums("relationModelTypeEnum", RelationModelTypeEnum.values())
                 .addEnums("diagnoseFeatureTypeEnum", DiagnoseFeatureTypeEnum.values())
                 .addEnums("diagnoseFieldEnum", DiagnoseFieldEnum.values())

+ 2 - 0
knowledgeman-service/src/main/java/com/diagbot/vo/ConceptIndexVO.java

@@ -18,4 +18,6 @@ public class ConceptIndexVO {
     @NotBlank(message="名称不能为空")
     private String name;
 
+    private Integer lisPacsOnly = 0;
+
 }

+ 2 - 0
knowledgeman-service/src/main/java/com/diagbot/vo/GetConceptDetailListVO.java

@@ -31,6 +31,8 @@ public class GetConceptDetailListVO extends Page {
 
 	@ApiModelProperty(value = "状态值,已删除=Y,启用中=N")
 	private String status;
+
+	private Integer lisPacsOnly = 0;
 	
 
 }

+ 12 - 2
knowledgeman-service/src/main/resources/mapper/ConceptDetailMapper.xml

@@ -32,6 +32,9 @@
 		<if test="libType!=null">
 			and b.lib_type=#{libType}
 		</if>
+        <if test="lisPacsOnly != null and lisPacsOnly == 1">
+            AND b.lib_type in (16,46)
+        </if>
         group by a.concept_id
         ORDER BY a.is_deleted ASC, a.gmt_modified DESC
    	</select>
@@ -47,7 +50,7 @@
 
     <select id="index" resultType="com.diagbot.dto.ConceptIndexDTO">
         SELECT
-			DISTINCT 
+			DISTINCT
 			a.id AS conceptId,
 			a.lib_name AS name,
 			a.lib_type AS typeId
@@ -57,7 +60,14 @@
 		<if test="name != null and name != ''">
             AND UPPER(a.lib_name) like concat('%',UPPER(TRIM(#{name})) ,'%' )
         </if>
-        AND a.lib_type not in(12,13,14)
+        <choose>
+            <when test="lisPacsOnly != null and lisPacsOnly == 1">
+                AND a.lib_type in (16,46)
+            </when>
+            <otherwise>
+                AND a.lib_type not in(12,13,14)
+            </otherwise>
+        </choose>
 		ORDER BY a.gmt_modified DESC
     </select>