瀏覽代碼

导出数据控制在LIMIT 1000

tchao 2 年之前
父節點
當前提交
535a76566b

+ 1 - 2
mybusiness/src/main/resources/mapper/grid/manager/TUEventFireMapper.xml

@@ -100,8 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="createUserId != null  and createUserId != ''"> and create_user_id = #{createUserId}</if>
             <if test="createUserId != null  and createUserId != ''"> and create_user_id = #{createUserId}</if>
             <if test="params != null "> ${params.dataScope}</if>
             <if test="params != null "> ${params.dataScope}</if>
         </where>
         </where>
-
-        order by report_time desc
+        order by report_time desc  LIMIT 1000
     </select>
     </select>
 
 
     <select id="selectTUEventFireById" parameterType="String" resultMap="TUEventFireResult">
     <select id="selectTUEventFireById" parameterType="String" resultMap="TUEventFireResult">

+ 1 - 1
mybusiness/src/main/resources/mapper/grid/manager/TUEventOthersMapper.xml

@@ -102,7 +102,7 @@
             </foreach>
             </foreach>
         </if>
         </if>
         ${params.dataScope}
         ${params.dataScope}
-        order by report_time desc
+        order by report_time desc LIMIT 1000
     </select>
     </select>
 
 
     <select id="selectTUEventOthersById" parameterType="String" resultMap="TUEventOthersResult">
     <select id="selectTUEventOthersById" parameterType="String" resultMap="TUEventOthersResult">