gaodm преди 4 години
родител
ревизия
5b853e76fc

+ 4 - 4
src/main/resources/mapper/DeptConfigMapper.xml

@@ -42,10 +42,10 @@
 
     <select id="getDeptsIndex" resultType="com.diagbot.entity.DeptConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_dept_config`
         WHERE
@@ -58,7 +58,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_dept_config`
         WHERE
@@ -71,7 +71,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_dept_config`
         WHERE

+ 4 - 4
src/main/resources/mapper/DiseaseConfigMapper.xml

@@ -38,10 +38,10 @@
 
     <select id="getDiseasesIndex" resultType="com.diagbot.entity.DiseaseConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_disease_config`
         WHERE
@@ -54,7 +54,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_disease_config`
         WHERE
@@ -67,7 +67,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_disease_config`
         WHERE

+ 4 - 4
src/main/resources/mapper/DrugConfigMapper.xml

@@ -42,10 +42,10 @@
 
     <select id="getMedicinesIndex" resultType="com.diagbot.entity.DrugConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_drug_config`
         WHERE
@@ -58,7 +58,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_drug_config`
         WHERE
@@ -71,7 +71,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_drug_config`
         WHERE

+ 8 - 8
src/main/resources/mapper/LisConfigMapper.xml

@@ -43,10 +43,10 @@
 
     <select id="getLisPacksIndex" resultType="com.diagbot.entity.LisConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-            *
+        DISTINCT his_name
         FROM
             `tran_lis_config`
         WHERE
@@ -60,7 +60,7 @@
         </if>
         UNION
         SELECT
-            *
+        DISTINCT his_name
         FROM
             `tran_lis_config`
         WHERE
@@ -74,7 +74,7 @@
         </if>
         UNION
         SELECT
-            *
+        DISTINCT his_name
         FROM
             `tran_lis_config`
         WHERE
@@ -91,10 +91,10 @@
 
     <select id="getLisIndex" resultType="com.diagbot.entity.LisConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name,u.his_detail_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name,his_detail_name
         FROM
         `tran_lis_config`
         WHERE
@@ -107,7 +107,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name,his_detail_name
         FROM
         `tran_lis_config`
         WHERE
@@ -120,7 +120,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name,his_detail_name
         FROM
         `tran_lis_config`
         WHERE

+ 4 - 4
src/main/resources/mapper/OperationConfigMapper.xml

@@ -38,10 +38,10 @@
 
     <select id="getOperationsIndex" resultType="com.diagbot.entity.OperationConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_operation_config`
         WHERE
@@ -54,7 +54,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_operation_config`
         WHERE
@@ -67,7 +67,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_operation_config`
         WHERE

+ 4 - 4
src/main/resources/mapper/PacsConfigMapper.xml

@@ -38,10 +38,10 @@
 
     <select id="getPACSsIndex" resultType="com.diagbot.entity.PacsConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_pacs_config`
         WHERE
@@ -54,7 +54,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_pacs_config`
         WHERE
@@ -67,7 +67,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_pacs_config`
         WHERE

+ 4 - 4
src/main/resources/mapper/TransfusionConfigMapper.xml

@@ -38,10 +38,10 @@
 
     <select id="getTransfusionIndex" resultType="com.diagbot.entity.TransfusionConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
-        SELECT u.*
+        SELECT DISTINCT u.his_name
         FROM(
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_transfusion_config`
         WHERE
@@ -54,7 +54,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_transfusion_config`
         WHERE
@@ -67,7 +67,7 @@
         </if>
         UNION
         SELECT
-        *
+        DISTINCT his_name
         FROM
         `tran_transfusion_config`
         WHERE