gongchunyi
4 天以前 9f6a65e7f4b87b0e27e7d2949b4e42f40419b2ff
src/main/resources/mapper/quality/QualityTestStandardBindingMapper.xml
@@ -14,9 +14,12 @@
        <result column="tenant_id" property="tenantId"/>
    </resultMap>
    <select id="listBinding" resultType="com.ruoyi.quality.dto.QualityTestStandardBindingDto">
        select *
        select t2.product_name,
               t3.model,
               t1.id qualityTestStandardBindingId
        from quality_test_standard_binding t1
                 left join product t2 on t1.product_id = t2.id
                 left join product_model t3 on t1.product_model_id = t3.id
        where t1.test_standard_id = #{testStandardId}
    </select>