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