Browse Source

查询结果限制100个

gaodm 4 years ago
parent
commit
d5ed5647fe

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

@@ -42,6 +42,8 @@
 
     <select id="getDeptsIndex" resultType="com.diagbot.entity.DeptConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -80,6 +82,7 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 
 </mapper>

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

@@ -38,6 +38,8 @@
 
     <select id="getDiseasesIndex" resultType="com.diagbot.entity.DiseaseConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -76,6 +78,7 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 
 </mapper>

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

@@ -42,6 +42,8 @@
 
     <select id="getMedicinesIndex" resultType="com.diagbot.entity.DrugConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -80,6 +82,7 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 
 </mapper>

+ 6 - 0
src/main/resources/mapper/LisConfigMapper.xml

@@ -43,6 +43,8 @@
 
     <select id="getLisPacksIndex" resultType="com.diagbot.entity.LisConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
             *
         FROM
@@ -84,10 +86,13 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 
     <select id="getLisIndex" resultType="com.diagbot.entity.LisConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -126,5 +131,6 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_detail_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 </mapper>

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

@@ -38,6 +38,8 @@
 
     <select id="getOperationsIndex" resultType="com.diagbot.entity.OperationConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -76,5 +78,6 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 </mapper>

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

@@ -38,6 +38,8 @@
 
     <select id="getPACSsIndex" resultType="com.diagbot.entity.PacsConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -76,5 +78,6 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 </mapper>

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

@@ -38,6 +38,8 @@
 
     <select id="getTransfusionIndex" resultType="com.diagbot.entity.TransfusionConfig"
             parameterType="com.diagbot.vo.RetrievalVO">
+        SELECT u.*
+        FROM(
         SELECT
         *
         FROM
@@ -76,5 +78,6 @@
         <if test="inputStr!=null and inputStr!=''">
             and his_name like concat("%",#{inputStr},"%")
         </if>
+        ) u LIMIT 100
     </select>
 </mapper>