| | |
| | | from ba_block |
| | | <trim prefix="where " suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | name like '%#{name,jdbcType=VARCHAR}%' and |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | header = '#{header,jdbcType=VARCHAR}' and |
| | | header like concat('%', #{header}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' and |
| | |
| | | from ba_block |
| | | <trim prefix="where " suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | name like '%#{name,jdbcType=VARCHAR}%' and |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | header = '#{header,jdbcType=VARCHAR}' and |
| | |
| | | blockId = #{blockId,jdbcType=BIGINT} and |
| | | </if> |
| | | <if test="name != null"> |
| | | name like '%#{name,jdbcType=VARCHAR}%' and |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="num != null"> |
| | | num = '#{num,jdbcType=VARCHAR}' and |
| | |
| | | blockId = #{blockId,jdbcType=BIGINT} and |
| | | </if> |
| | | <if test="name != null"> |
| | | name like '%#{name,jdbcType=VARCHAR}%' and |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="num != null"> |
| | | num = '#{num,jdbcType=VARCHAR}' and |
| | |
| | | from ba_client_type |
| | | <trim prefix="where" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | name like concat('%', #{name}, '%') |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | </trim> |
| | | </select> |