Lius
2024-10-24 a7a4e0e6ae09c720e50dc22fc50c67519414067c
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcComponentInfoMapper.xml
@@ -15,4 +15,16 @@
            </if>
        </where>
    </select>
    <select id="findByComponentNo" resultType="org.jeecg.modules.mdc.entity.MdcComponentInfo">
        SELECT
            t1.*
        FROM
            mdc_component_info t1
                LEFT JOIN mdc_production_equipment t2 ON t1.beltline_id = t2.production_id
                LEFT JOIN mdc_equipment t3 ON t3.id = t2.equipment_id
        WHERE
            t1.component_no = #{productNo}
          AND t3.equipment_id = #{equipmentId}
    </select>
</mapper>