liyg 1 年之前
父节点
当前提交
362af64abe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -552,6 +552,7 @@
             <if test="!((driverId!=null and driverId!='') or (driverId2!=null and driverId2!=''))">
                 order by RCA.CAPACITY_ID desc
             </if>
+            FETCH NEXT 10 ROWS ONLY
         )
         <if test="id!=null and id.size>0">
             UNION
@@ -640,7 +641,6 @@
     <if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
         ORDER BY "countNumber" DESC
     </if>
-    FETCH NEXT 10 ROWS ONLY
     </select>
 
     <select id="getCapacityByLikeSc" resultType="java.util.Map">