zhubaomin
2025-02-26 c2028968a72482249491afd2c94fdd583e1eff94
解决控制器报警与状态的bug
1个文件已修改
11 ■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmAlarmStateHistoryMapper.xml 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmAlarmStateHistoryMapper.xml
@@ -403,17 +403,16 @@
            and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%')
        </if>
        <if test="startDt != null and startDt != ''">
            and rasl.dt &gt;= #{startDt,jdbcType=TIMESTAMP}
                and rash.dt &gt;= #{startDt,jdbcType=TIMESTAMP}
        </if>
        <if test="endDt != null and endDt != ''">
            and rasl.dt &lt;= #{endDt,jdbcType=TIMESTAMP}
                and rash.dt &lt;= #{endDt,jdbcType=TIMESTAMP}
        </if>
        </where>
    </select>
    <!--根据指定条件获取记录-->
    <select id="getControllerAlarmStateHistory" resultType="com.dy.pipIrrGlobal.voRm.VoControllerAlarmState">
        select
        CAST(rash.controller_id AS char)AS controllerId,
        select CAST(rash.controller_id AS char) AS controllerId,
        CAST(rash.intake_id AS char)AS intakeId,
        pint.name as intakeName,
        rash.rtu_addr as rtuAddr,
@@ -487,10 +486,10 @@
                and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%')
            </if>
            <if test="startDt != null and startDt != ''">
                and rasl.dt &gt;= #{startDt,jdbcType=TIMESTAMP}
                and rash.dt &gt;= #{startDt,jdbcType=TIMESTAMP}
            </if>
            <if test="endDt != null and endDt != ''">
                and rasl.dt &lt;= #{endDt,jdbcType=TIMESTAMP}
                and rash.dt &lt;= #{endDt,jdbcType=TIMESTAMP}
            </if>
        </where>
        ORDER BY rash.id DESC