Lius
2024-04-18 1b1233fae35e9e28dbec5934858bf438ee519951
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml
@@ -127,15 +127,15 @@
        SELECT
            t1.equipment_id,
            t2.equipment_name,
            SUM ( process_long ) processLong,
            SUM ( open_long ) openLong
            SUM ( t1.process_long ) processLong,
            SUM ( t1.open_long ) openLong
        FROM
            mdc_equipment_statistical_info t1
            LEFT JOIN mdc_equipment t2 ON t1.equipment_id = t2.equipment_id
        <where>
            AND the_date BETWEEN #{start} AND #{end}
            AND t1.the_date BETWEEN #{start} AND #{end}
            <if test="equipmentIdList != null and equipmentIdList.size() > 0 ">
                AND equipment_id IN
                AND t1.equipment_id IN
                <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
                    #{id}
                </foreach>