gaoluyang
7 小时以前 f4ef6d1f4489e0d4cbba1845792945b924c16228
yudao-module-mes/src/main/resources/mapper/home/MesHomeStatisticsMapper.xml
@@ -50,6 +50,27 @@
                        ${@cn.iocoder.yudao.module.mes.enums.dv.MesDvRepairStatusEnum@APPROVING.status})
    </select>
    <!-- 按检验类型统计质检单的检验量与合格量(不过滤状态,无时间范围限制) -->
    <select id="selectQcQualifiedSummary" resultType="java.util.Map">
        SELECT 'IQC'                               AS type,
               IFNULL(SUM(check_quantity), 0)      AS checkQuantity,
               IFNULL(SUM(qualified_quantity), 0)  AS qualifiedQuantity
        FROM mes_qc_iqc
        WHERE deleted = 0
        UNION ALL
        SELECT 'IPQC',
               IFNULL(SUM(check_quantity), 0),
               IFNULL(SUM(qualified_quantity), 0)
        FROM mes_qc_ipqc
        WHERE deleted = 0
        UNION ALL
        SELECT 'OQC',
               IFNULL(SUM(check_quantity), 0),
               IFNULL(SUM(qualified_quantity), 0)
        FROM mes_qc_oqc
        WHERE deleted = 0
    </select>
    <!-- 按天聚合报工产量 -->
    <select id="selectDailyFeedbackTrend" resultType="java.util.Map">
        SELECT DATE_FORMAT(feedback_time, '%Y-%m-%d')    AS date,