<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhentao.mapper.AdminUserMapper">

    <resultMap id="BaseResultMap" type="com.zhentao.entity.AdminUser">
            <id property="id" column="id" />
            <result property="username" column="username" />
            <result property="password" column="password" />
            <result property="salt" column="salt" />
            <result property="realName" column="real_name" />
            <result property="phone" column="phone" />
            <result property="email" column="email" />
            <result property="status" column="status" />
            <result property="createTime" column="create_time" />
            <result property="updateTime" column="update_time" />
            <result property="lastLoginTime" column="last_login_time" />
    </resultMap>

    <sql id="Base_Column_List">
        id,username,password,salt,real_name,phone,
        email,status,create_time,update_time,last_login_time
    </sql>
    <update id="updatePoints">
        update matchmakers set points = points + #{pointsPrice} where matchmaker_id = #{id}
    </update>
</mapper>
