fix(inventory): 修复库存查询排序逻辑

- 将排序字段从按ID降序改为按物料号、工厂号、仓库号、库位、批次排序
- 确保库存数据按业务关键字段有序返回
- 提高库存查询结果的一致性和可预测性
This commit is contained in:
曹鹏飞 2026-06-16 14:40:40 +08:00
parent 534a2af695
commit a8ff50ab2b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
AND i.detection_results = #{request.detectionResults}
</if>
</where>
order by i.id desc
order by i.material_no,i.factory_no,i.warehouse_no,i.bin_location,i.batch_no
</select>
<select id="getNum" resultType="com.nflg.wms.common.pojo.dto.InventoryInDTO">