Lius
2024-12-31 c8673cbde4538b109e43042dc93cf33c46dca37e
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
@@ -276,4 +276,15 @@
            t1.id = #{ id }
    </select>
    <!--根据产线id查询设备id集合-->
    <select id="queryIdsByProduction" resultType="java.lang.String">
        SELECT
            me.equipment_id
        FROM
            mdc_equipment me
            LEFT JOIN mdc_production_equipment mpe ON me.id = mpe.equipment_id
        WHERE
            mpe.production_id = #{ productionId }
    </select>
</mapper>