From 66f732bf66f45b697d1881a3a1adee670326a786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Wed, 6 May 2026 18:22:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(repository):=20=E4=BF=AE=E6=AD=A3=E8=B4=A8?= =?UTF-8?q?=E6=A3=80=E7=89=A9=E6=96=99=E6=9F=A5=E8=AF=A2=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将查询结果排序字段从id改为material_no - 优化查询逻辑,使排序符合业务需求 - 保持查询条件和结构不变,确保兼容性 --- .../src/main/resources/mapper/QmsQcMaterialMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nflg-wms-repository/src/main/resources/mapper/QmsQcMaterialMapper.xml b/nflg-wms-repository/src/main/resources/mapper/QmsQcMaterialMapper.xml index 148b6fa0..73f33dc9 100644 --- a/nflg-wms-repository/src/main/resources/mapper/QmsQcMaterialMapper.xml +++ b/nflg-wms-repository/src/main/resources/mapper/QmsQcMaterialMapper.xml @@ -94,7 +94,7 @@ AND material_name ilike concat('%', #{request.materialName}, '%') - ORDER BY id DESC + ORDER BY material_no DESC