liyong
2026-04-30 c2ad2126d6f8423e0a5e6e20bbb91ef6bb1cffc0
src/main/resources/mapper/quality/QualityUnqualifiedMapper.xml
@@ -16,6 +16,10 @@
        qu.deal_result,
        qu.deal_name,
        qu.deal_time,
        qu.reason_analysis,
        qu.preventive_corrective,
        qu.loss_working,
        qu.loss_material,
        CASE
        WHEN qu.model = pm.id THEN pm.model
        ELSE qu.model
@@ -75,6 +79,10 @@
            qu.deal_result,
            qu.deal_name,
            qu.deal_time,
            qu.reason_analysis,
            qu.preventive_corrective,
            qu.loss_working,
            qu.loss_material,
            CASE
                WHEN qu.model = pm.id THEN pm.model
                ELSE qu.model
@@ -89,4 +97,11 @@
            1=1
        and qu.id = #{id}
    </select>
    <select id="getModelId" resultType="java.lang.Long">
        select pm.id
        from product_model pm
        left join product p on pm.product_id=p.id
        where pm.model=#{model}
          and  p.product_name=#{productName}
    </select>
</mapper>