| | |
| | | </sql> |
| | | |
| | | <sql id="part_Column_List"> |
| | | id, name, phone, orgTag, disabled |
| | | id, name, phone, disabled |
| | | </sql> |
| | | |
| | | <sql id="Login_Column_List"> |
| | |
| | | <select id="selectTotal" parameterType="java.util.Map" resultType="java.lang.Long"> |
| | | select |
| | | count(*) |
| | | from ba_user where supperAdmin!=1 and disabled!=1 and deleted!=1 |
| | | from ba_user where supperAdmin!=1 and deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | name like concat('%', #{name}, '%') and |
| | |
| | | <select id="selectSome" parameterType="java.util.Map" resultMap="someResultMap"> |
| | | select |
| | | <include refid="part_Column_List" /> |
| | | from ba_user where supperAdmin!=1 and disabled!=1 and deleted!=1 |
| | | from ba_user where supperAdmin!=1 and deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | name like concat('%', #{name}, '%') and |
| | |
| | | deleted = #{deleted,jdbcType=TINYINT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="changePassword" > |
| | | update ba_user |
| | | set password = #{password,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | delete from ba_user |
| | | where id = #{id,jdbcType=BIGINT} |