demand: 录单和签收图片管理查询返回顺序根据用户传的运单号排序

committer: heyu
This commit is contained in:
aike 2025-07-11 10:51:22 +08:00
parent dce675e149
commit 1445bc97a5

View File

@ -72,7 +72,15 @@
</if>
</where>
order by create_time desc
<if test="params.billCodeSortList != null and params.billCodeSortList.size() > 1 ">
ORDER BY FIELD
<foreach collection="params.billCodeSortList" item="item" open="(bill_code," separator="," close=")">
#{item}
</foreach>
</if>
<if test="params.billCodeSortList == null">
order by create_time desc
</if>
</select>