src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml
@@ -14,4 +14,13 @@ 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> </mapper>