|  |  |  | 
|---|
|  |  |  | where disabled!=1 and deleted!=1 and phone=#{phone} and password=#{password} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getUserList" resultMap="loginResultMap" > | 
|---|
|  |  |  | select | 
|---|
|  |  |  | <include refid="Login_Column_List" /> | 
|---|
|  |  |  | from ba_user | 
|---|
|  |  |  | where disabled!=1 and deleted!=1 | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="oneResultMap"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--      <if test="roleId != null and roleId !=''">--> | 
|---|
|  |  |  | <!--        ur.role_id=#{roleId,jdbcType=BIGINT} and--> | 
|---|
|  |  |  | <!--      </if>--> | 
|---|
|  |  |  | <if test="disabled != null and disabled !=''"> | 
|---|
|  |  |  | <if test="disabled != null"> | 
|---|
|  |  |  | bu.disabled=#{disabled,jdbcType=BOOLEAN} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--      <if test="roleId != null and roleId !=''">--> | 
|---|
|  |  |  | <!--        ur.role_id=#{roleId,jdbcType=BIGINT} and--> | 
|---|
|  |  |  | <!--      </if>--> | 
|---|
|  |  |  | <if test="disabled != null and disabled !=''"> | 
|---|
|  |  |  | <if test="disabled != null"> | 
|---|
|  |  |  | bu.disabled=#{disabled,jdbcType=BOOLEAN} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | insert into ba_user | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null and id !=''"> | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | id, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="name != null and name !=''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="password!= null and password !=''"> | 
|---|
|  |  |  | `password`, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="supperAdmin!= null and supperAdmin !=''"> | 
|---|
|  |  |  | <if test="supperAdmin!= null"> | 
|---|
|  |  |  | supper_admin, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="disabled != null and disabled !=''"> | 
|---|
|  |  |  | <if test="disabled != null"> | 
|---|
|  |  |  | disabled, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deleted != null and deleted !=''"> | 
|---|
|  |  |  | <if test="deleted != null"> | 
|---|
|  |  |  | deleted, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null and id !=''"> | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | #{id}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="name != null and name !=''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="password!= null and password !=''"> | 
|---|
|  |  |  | #{password}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="supperAdmin!= null and supperAdmin !=''"> | 
|---|
|  |  |  | <if test="supperAdmin!= null"> | 
|---|
|  |  |  | #{supperAdmin}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="disabled != null and disabled !=''"> | 
|---|
|  |  |  | <if test="disabled != null"> | 
|---|
|  |  |  | #{disabled}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deleted != null and deleted !=''"> | 
|---|
|  |  |  | <if test="deleted != null"> | 
|---|
|  |  |  | #{deleted}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="password!= null and password !=''"> | 
|---|
|  |  |  | `password` = #{password}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="supperAdmin!= null and supperAdmin !=''"> | 
|---|
|  |  |  | <if test="supperAdmin!= null"> | 
|---|
|  |  |  | supper_admin = #{supperAdmin}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="disabled != null and disabled !=''"> | 
|---|
|  |  |  | <if test="disabled != null"> | 
|---|
|  |  |  | disabled = #{disabled}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deleted != null and deleted !=''"> | 
|---|
|  |  |  | <if test="deleted != null"> | 
|---|
|  |  |  | deleted = #{deleted}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </set> | 
|---|