hyingbo
3 天以前 c33eedaf999b84dd8377aba96d8aeeeba264b4f6
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml
@@ -4,12 +4,17 @@
    <select id="getProductionByPid" resultType="org.jeecg.modules.system.entity.MdcProduction">
        SELECT
            t1.*
        t1.*
        FROM
            mdc_production t1
                LEFT JOIN mdc_user_production t2 ON t1.id = t2.pro_id
        WHERE
            t1.parent_id = #{ productionId } AND t2.user_id = #{ userId }
        mdc_production t1
        --                 LEFT JOIN mdc_user_production t2 ON t1.id = t2.pro_id
        WHERE 1=1
        <if test="productionId != null and productionId != ''">
            AND t1.parent_id = #{ productionId }
        </if>
        <!--        <if test="userId != null and userId != ''">-->
        <!--            AND t2.user_id = #{ userId }-->
        <!--        </if>-->
    </select>
    <select id="getProcessCount" resultType="java.math.BigDecimal">
@@ -126,6 +131,7 @@
    <select id="getEquipmentSevenUtilizationStatistics" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo">
        SELECT
            equipment_id,
            the_date,
            SUM ( process_long ) processLong,
            SUM ( open_long ) openLong
        FROM
@@ -140,7 +146,8 @@
            </if>
        </where>
        GROUP BY
            equipment_id
        equipment_id,
        the_date
    </select>