Lius
2025-05-08 5c18a8c93db1cf1b7b6d61a618e3a1b87fb14883
lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentMapper.xml
@@ -22,4 +22,19 @@
    <select id="checkTableDataNum" resultType="java.lang.Integer">
        SELECT COUNT(CollectTime) num FROM ${saveTableName} WHERE CollectTime &lt; '${day}'
    </select>
    <select id="listByProds" resultType="org.jeecg.modules.mdc.entity.Equipment">
        SELECT
            t1.*
        FROM
            Equipment t1
                LEFT JOIN mdc_equipment t2 ON t1.EquipmentID = t2.equipment_id
                LEFT JOIN mdc_production_equipment t3 ON t2.id = t3.equipment_id
        <where>
            t3.production_id IN
            <foreach collection="proIds" index="index" item="id" open="(" separator="," close=")">
                #{id}
            </foreach>
        </where>
    </select>
</mapper>