From af0f58e4b39a363b73587fa1b4cce7be46e203f5 Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期五, 12 九月 2025 15:07:51 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml b/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml index 3d45db9..da3039d 100644 --- a/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml +++ b/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml @@ -14,4 +14,18 @@ AND material_name LIKE CONCAT('%', #{params.materialName}, '%') </if> </select> + <select id="queryByMaterialNumber" resultType="org.jeecg.modules.pms.entity.PmsProcessBillMaterialsDetail"> + select DISTINCT t1.material_number, t1.material_name, t1.production_unit + from pms_process_bill_materials_detail t1 + where EXISTS(select t2.id + from pms_process_bill_materials t2 + where t2.material_number = #{materialNumber} + and t1.material_id = t2.id) + + </select> + <select id="queryByMaterialNumberOnly" resultType="org.jeecg.modules.pms.entity.PmsProcessBillMaterialsDetail"> + select DISTINCT t1.material_number, t1.material_name, t1.production_unit + from pms_process_bill_materials_detail t1 + where t1.material_number = #{materialNumber} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3