浏览代码

排序优化

caixiaofeng 6 月之前
父节点
当前提交
79c0605a1a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      flow-app/src/main/resources/mapper/workflow/FlowInstanceDao.xml

+ 2 - 2
flow-app/src/main/resources/mapper/workflow/FlowInstanceDao.xml

@@ -61,7 +61,7 @@
             <include refid="instanceWheres"></include>
         </where>
         ORDER BY
-        RE.id DESC
+        HP.START_TIME_ DESC
     </select>
     <select id="copy" resultMap="BaseResultMap">
         <include refid="instanceColumns"></include>
@@ -73,7 +73,7 @@
             <include refid="instanceWheres"></include>
         </where>
         ORDER BY
-        RE.id DESC
+        HP.START_TIME_ DESC
     </select>
     <select id="getInstance" resultMap="BaseResultMap">
         <include refid="instanceColumns"></include>