huangjiayang
2025-04-28 b0496b57b807044c8d4a866128b1ca42f4b339ad
aps-modules/aps-core/src/main/resources/mapper/core/ApsGasPipingRouteStatMapper.xml
@@ -49,6 +49,14 @@
            <if test="planStartMonth != null and planStartMonth != ''"> and plan_start_month = #{planStartMonth} </if>
            <if test="planStartDay != null and planStartDay != ''"> and plan_start_day = #{planStartDay} </if>
            <if test="searchStartDate != null and searchStartDate != '' and searchEndDate != null and searchEndDate != ''"> and (process_plan_start_day &gt;= #{searchStartDate} and process_plan_start_day &lt;= #{searchEndDate}) </if>
            <if test="major != null and major != '' and major == 'piping'">
                <if test="major == 'piping'">
                    and process_name in (select process_name from aps_standard_process where major='管路')
                </if>
                <if test="major == 'gas'">
                    and process_name in (select process_name from aps_standard_process where major='气柜')
                </if>
            </if>
        </where>
    </select>