|  |  | 
 |  |  |       LEFT JOIN se_client cli ON cli.id = his.operator | 
 |  |  |       LEFT JOIN ba_user  user ON user.id = his.operator | 
 |  |  |     <where> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         AND his.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test = "commandName != null and commandName !=''"> | 
 |  |  |         AND his.command_name LIKE CONCAT('%',#{commandName},'%') | 
 |  |  |       </if> | 
 |  |  | 
 |  |  |         LEFT JOIN se_client cli ON cli.id = his.operator | 
 |  |  |         LEFT JOIN ba_user  user ON user.id = his.operator | 
 |  |  |     <where> | 
 |  |  |       <if test="intakeId != null"> | 
 |  |  |         AND his.intake_id = #{intakeId} | 
 |  |  |       </if> | 
 |  |  |       <if test = "commandName != null and commandName !=''"> | 
 |  |  |         AND his.command_name LIKE CONCAT('%',#{commandName},'%') | 
 |  |  |       </if> |