| | |
| | | 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> |