From e8f4e98629445284bc4e2a896853b8c2f0885352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Wed, 10 Jun 2026 09:35:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(qms):=20=E6=89=A9=E5=B1=95=E8=B4=A8?= =?UTF-8?q?=E6=A3=80=E5=91=98=E7=BB=91=E5=AE=9A=E7=89=A9=E6=96=99=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 支持按物料类别层级结构查询,使用LIKE匹配前缀实现子类别检索 - 新增UNION ALL查询机制,合并直接绑定物料和通过物料类别绑定的物料 - 集成qms_qc_material_category表的ltree层次关系,支持类别树形结构展开 - 完善物料类别绑定逻辑,通过parent_tree <@匹配获取子孙类别下的所有物料 - 优化查询排序字段,统一使用material_id进行排序 - 更新SQL注释文档,详细说明两路数据源合并逻辑和类别层级匹配机制 --- .../mapper/QmsQualityInspectorMapper.xml | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/nflg-wms-repository/src/main/resources/mapper/QmsQualityInspectorMapper.xml b/nflg-wms-repository/src/main/resources/mapper/QmsQualityInspectorMapper.xml index c137e6e3..ca087b56 100644 --- a/nflg-wms-repository/src/main/resources/mapper/QmsQualityInspectorMapper.xml +++ b/nflg-wms-repository/src/main/resources/mapper/QmsQualityInspectorMapper.xml @@ -105,10 +105,17 @@ ORDER BY imi.id ASC - +