|  |  | 
 |  |  |         and rasl.valve_state = #{valveState,jdbcType=TINYINT} | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and rasl.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeName != null"> | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  | 
 |  |  |         and rasl.valve_state = #{valveState,jdbcType=TINYINT} | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and rasl.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeName != null"> | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 
 |  |  | 
 |  |  |         and sc.name like CONCAT('%',#{clientName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="clientId != null"> | 
 |  |  |         and rcad.client_id = #{clientId} | 
 |  |  |         and rcadl.client_id = #{clientId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and rcadl.dt >= #{startDt,jdbcType=DATE} | 
 |  |  | 
 |  |  |         and sc.name like CONCAT('%',#{clientName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="clientId != null"> | 
 |  |  |         and rcad.client_id = #{clientId} | 
 |  |  |         and rcadl.client_id = #{clientId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and rcadl.dt >= #{startDt,jdbcType=DATE} | 
 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and riadl.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and riadl.dt >= #{startDt,jdbcType=DATE} | 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and riadl.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and riadl.dt >= #{startDt,jdbcType=DATE} | 
 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and riad.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and riad.dt >= #{startDt,jdbcType=DATE} | 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and riad.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and riad.dt >= #{startDt,jdbcType=DATE} | 
 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and rldl.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and rldl.dt >= #{startDt,jdbcType=DATE} | 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and rldl.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and rldl.dt >= #{startDt,jdbcType=DATE} | 
 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and rld.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and rld.dt >= #{startDt,jdbcType=DATE} | 
 |  |  | 
 |  |  |         and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') | 
 |  |  |       </if> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         and rash.intake_id = #{intakeId} | 
 |  |  |         and rld.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test="startDt != null"> | 
 |  |  |         and rld.dt >= #{startDt,jdbcType=DATE} |