| | |
| | | count(*) |
| | | from ba_block |
| | | <trim prefix="where " suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | <if test="header != null and header != ''"> |
| | | header like concat('%', #{header}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="area != null"> |
| | |
| | | <include refid="Base_Column_List" /> |
| | | from ba_block |
| | | <trim prefix="where " suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | <if test="header != null and header != ''"> |
| | | header = '#{header,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="area != null"> |