|  |  | 
 |  |  |         <if test="valveState != null"> | 
 |  |  |             and rash.valve_state = #{valveState,jdbcType=TINYINT} | 
 |  |  |         </if> | 
 |  |  |         <if test="intakeName != null"> | 
 |  |  |              and pint.name = #{intakeName,jdbcType=VARCHAR} | 
 |  |  |         <if test="intakeId != null and intakeId != '' "> | 
 |  |  |             and rash.intake_id = #{intakeId} | 
 |  |  |         </if> | 
 |  |  |         <if test="intakeName != null and intakeName != '' "> | 
 |  |  |             and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |         </if> | 
 |  |  |         <if test="startDt != null"> | 
 |  |  |              and rash.dt >= #{startDt,jdbcType=TIMESTAMP} | 
 |  |  | 
 |  |  |             <if test="valveState != null"> | 
 |  |  |                 and rash.valve_state = #{valveState,jdbcType=TINYINT} | 
 |  |  |             </if> | 
 |  |  |             <if test="intakeName != null"> | 
 |  |  |             <if test="intakeId != null and intakeId != '' "> | 
 |  |  |                 and rash.intake_id = #{intakeId} | 
 |  |  |             </if> | 
 |  |  |             <if test="intakeName != null and intakeName != '' "> | 
 |  |  |                 and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |             </if> | 
 |  |  |             <if test="startDt != null"> | 
 |  |  | 
 |  |  |                 and rash.dt <= #{endDt,jdbcType=TIMESTAMP} | 
 |  |  |             </if> | 
 |  |  |         </where> | 
 |  |  |         ORDER BY rash.dt DESC | 
 |  |  |         ORDER BY rash.id DESC | 
 |  |  |         <if test="pageCurr != null and pageSize != null"> | 
 |  |  |             LIMIT ${(pageCurr-1)*pageSize}, ${pageSize} | 
 |  |  |         </if> |