feat: bug-760 钢构包管理列表默认按创建时间排序

This commit is contained in:
曹鹏飞 2025-09-28 09:55:43 +08:00
parent c8722c267a
commit 429a9ed448
1 changed files with 3 additions and 3 deletions

View File

@ -22,14 +22,14 @@
and latest=true and latest=true
</if> </if>
</where> </where>
ORDER BY id DESC ORDER BY create_time DESC
</select> </select>
<select id="getHistory" resultType="com.nflg.wms.common.pojo.vo.PackageVO"> <select id="getHistory" resultType="com.nflg.wms.common.pojo.vo.PackageVO">
select id,"no","order_no","name",drawing_no,weight,cate,eco,version,remark,enable,create_by,create_time,update_by,update_time,get_modelnos(model_ids) as "modelNos" select id,"no","order_no","name",drawing_no,weight,cate,eco,version,remark,enable,create_by,create_time,update_by,update_time,get_modelnos(model_ids) as "modelNos"
from wms_structural_package from wms_structural_package
where no=#{no} where no=#{no}
order by id desc order by create_time desc
</select> </select>
<select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.PackageVO"> <select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.PackageVO">
@ -53,7 +53,7 @@
SELECT * SELECT *
FROM wms_structural_package FROM wms_structural_package
WHERE "no"=#{materialNo} WHERE "no"=#{materialNo}
ORDER BY id DESC ORDER BY create_time DESC
LIMIT 1 LIMIT 1
</select> </select>
</mapper> </mapper>