| | |
| | | <result column="tenant_id" property="tenantId"/> |
| | | </resultMap> |
| | | <select id="listBinding" resultType="com.ruoyi.quality.dto.QualityTestStandardBindingDto"> |
| | | select * |
| | | select t3.product_name , |
| | | t2.model , |
| | | t2.material_code , |
| | | t1.id qualityTestStandardBindingId |
| | | from quality_test_standard_binding t1 |
| | | left join product t2 on t1.product_id = t2.id |
| | | left join product_material_sku t2 on t1.product_id = t2.id |
| | | left join product_material t3 on t2.product_id = t3.id |
| | | where t1.test_standard_id = #{testStandardId} |
| | | </select> |
| | | |