| | |
| | | <!--@mbg.generated--> |
| | | id, `name`, `header`, phone, area, color,deleted |
| | | </sql> |
| | | <sql id="part_Column_List"> |
| | | <!--@mbg.generated--> |
| | | id, `name` |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | |
| | | from ba_block |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectTotal" parameterType="java.util.Map" resultType="java.lang.Long"> |
| | | |
| | | <select id="selectAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="part_Column_List" /> |
| | | from ba_block |
| | | </select> |
| | | |
| | | <select id="selectTotal" parameterType="java.util.Map" resultType="java.lang.Long"> |
| | | 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 |