yangbin
2025-02-19 efdecc7019261f8fdc875505281f54ef7a3bfbce
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentStatisticalShiftInfoMapper.xml
@@ -17,4 +17,32 @@
            equipment_id = #{ equipmentId }
            AND the_date LIKE CONCAT(#{ validDate },'%')
    </select>
    <select id="findDataForBigScreen" resultType="org.jeecg.modules.mdc.subcontrol.vo.LastWeekDataVo">
        SELECT
        THE_DATE,
        SUM( close_long ) close_long,
        SUM( open_long ) open_long,
        SUM( error_long ) error_long,
        SUM( wait_long ) wait_long,
        SUM( process_long ) process_long,
        SUM( total_long ) total_long
        FROM
        mdc_equipment_statistical_shift_info
        <where>
            <if test="equipmentIdList != null and equipmentIdList.size() > 0">
                AND EQUIPMENT_ID IN
                <foreach collection="equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
                    #{ id }
                </foreach>
            </if>
            AND THE_DATE &gt;= #{ monday }
            AND THE_DATE &lt;= #{ saturday }
        </where>
        GROUP BY
        THE_DATE
        ORDER BY
        THE_DATE ASC;
    </select>
</mapper>