| | |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="startDt != null and startDt != ''"> |
| | | and rasl.dt >= #{startDt,jdbcType=TIMESTAMP} |
| | | and rash.dt >= #{startDt,jdbcType=TIMESTAMP} |
| | | </if> |
| | | <if test="endDt != null and endDt != ''"> |
| | | and rasl.dt <= #{endDt,jdbcType=TIMESTAMP} |
| | | and rash.dt <= #{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, |
| | |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="startDt != null and startDt != ''"> |
| | | and rasl.dt >= #{startDt,jdbcType=TIMESTAMP} |
| | | and rash.dt >= #{startDt,jdbcType=TIMESTAMP} |
| | | </if> |
| | | <if test="endDt != null and endDt != ''"> |
| | | and rasl.dt <= #{endDt,jdbcType=TIMESTAMP} |
| | | and rash.dt <= #{endDt,jdbcType=TIMESTAMP} |
| | | </if> |
| | | </where> |
| | | ORDER BY rash.id DESC |