按照顺序查询结果

This commit is contained in:
zhangjun
2022-08-31 12:22:10 +08:00
parent b42a15ebda
commit 96a818628d
@@ -70,12 +70,7 @@
#{id}
</foreach>
</if>
<if test=" null != ids and ids.size()> 0">
order by field(INSTITUTION_ID,
<foreach item="id" collection="ids" open="" separator="," close="" index="index">
#{id}
</foreach>)
</if>
ORDER BY p.id is null,p.create_time
limit #{start},#{end}
</select>