Browse Source

修复工作流导入时update_time时间一样,导致分页查询存在乱序问题 (#14810)

Co-authored-by: David Zollo <dailidong66@gmail.com>
Co-authored-by: Rick Cheng <rickchengx@gmail.com>
tangjiaolong 1 year ago
parent
commit
feb302335b

+ 1 - 1
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml

@@ -79,7 +79,7 @@
                 name like concat('%', #{searchVal}, '%') OR description like concat('%', #{searchVal}, '%')
                 )
         </if>
-        order by update_time desc
+        order by update_time desc, id asc
     </select>
     <select id="filterProcessDefinition"
             parameterType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"