All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mapper.AdminAccountMapper.xml Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
<?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="cn.ipokerface.admin.mapper.AdminAccountMapper">
  <resultMap id="BaseResultMap" type="cn.ipokerface.admin.entity.AdminAccount">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    <id column="ID" jdbcType="BIGINT" property="id" />
    <result column="USERNAME" jdbcType="VARCHAR" property="username" />
    <result column="MOBILE" jdbcType="VARCHAR" property="mobile" />
    <result column="NAME" jdbcType="VARCHAR" property="name" />
    <result column="PASSWORD" jdbcType="VARCHAR" property="password" />
    <result column="SALT" jdbcType="VARCHAR" property="salt" />
    <result column="STATUS" jdbcType="VARCHAR" property="status" />
    <result column="VERSION" jdbcType="INTEGER" property="version" />
    <result column="REMARK" jdbcType="VARCHAR" property="remark" />
    <result column="STATE" jdbcType="VARCHAR" property="state" />
    <result column="CREATED_ID" jdbcType="BIGINT" property="createdId" />
    <result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
    <result column="UPDATED_ID" jdbcType="BIGINT" property="updatedId" />
    <result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    ID, USERNAME, MOBILE, NAME, PASSWORD, SALT, STATUS, VERSION, REMARK, STATE, CREATED_ID, 
    CREATED_TIME, UPDATED_ID, UPDATED_TIME
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    select 
    <include refid="Base_Column_List" />
    from ADMIN_ACCOUNT
    where ID = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    delete from ADMIN_ACCOUNT
    where ID = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="cn.ipokerface.admin.entity.AdminAccount">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    insert into ADMIN_ACCOUNT (ID, USERNAME, MOBILE, 
      NAME, PASSWORD, SALT, 
      STATUS, VERSION, REMARK, 
      STATE, CREATED_ID, CREATED_TIME, 
      UPDATED_ID, UPDATED_TIME)
    values (#{id,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, 
      #{name,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR}, 
      #{status,jdbcType=VARCHAR}, #{version,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, 
      #{state,jdbcType=VARCHAR}, #{createdId,jdbcType=BIGINT}, #{createdTime,jdbcType=TIMESTAMP}, 
      #{updatedId,jdbcType=BIGINT}, #{updatedTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="cn.ipokerface.admin.entity.AdminAccount">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    insert into ADMIN_ACCOUNT
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="username != null">
        USERNAME,
      </if>
      <if test="mobile != null">
        MOBILE,
      </if>
      <if test="name != null">
        NAME,
      </if>
      <if test="password != null">
        PASSWORD,
      </if>
      <if test="salt != null">
        SALT,
      </if>
      <if test="status != null">
        STATUS,
      </if>
      <if test="version != null">
        VERSION,
      </if>
      <if test="remark != null">
        REMARK,
      </if>
      <if test="state != null">
        STATE,
      </if>
      <if test="createdId != null">
        CREATED_ID,
      </if>
      <if test="createdTime != null">
        CREATED_TIME,
      </if>
      <if test="updatedId != null">
        UPDATED_ID,
      </if>
      <if test="updatedTime != null">
        UPDATED_TIME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="username != null">
        #{username,jdbcType=VARCHAR},
      </if>
      <if test="mobile != null">
        #{mobile,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="password != null">
        #{password,jdbcType=VARCHAR},
      </if>
      <if test="salt != null">
        #{salt,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="version != null">
        #{version,jdbcType=INTEGER},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="state != null">
        #{state,jdbcType=VARCHAR},
      </if>
      <if test="createdId != null">
        #{createdId,jdbcType=BIGINT},
      </if>
      <if test="createdTime != null">
        #{createdTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatedId != null">
        #{updatedId,jdbcType=BIGINT},
      </if>
      <if test="updatedTime != null">
        #{updatedTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="cn.ipokerface.admin.entity.AdminAccount">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    update ADMIN_ACCOUNT
    <set>
      <if test="username != null">
        USERNAME = #{username,jdbcType=VARCHAR},
      </if>
      <if test="mobile != null">
        MOBILE = #{mobile,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        NAME = #{name,jdbcType=VARCHAR},
      </if>
      <if test="password != null">
        PASSWORD = #{password,jdbcType=VARCHAR},
      </if>
      <if test="salt != null">
        SALT = #{salt,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        STATUS = #{status,jdbcType=VARCHAR},
      </if>
      <if test="version != null">
        VERSION = #{version,jdbcType=INTEGER},
      </if>
      <if test="remark != null">
        REMARK = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="state != null">
        STATE = #{state,jdbcType=VARCHAR},
      </if>
      <if test="createdId != null">
        CREATED_ID = #{createdId,jdbcType=BIGINT},
      </if>
      <if test="createdTime != null">
        CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatedId != null">
        UPDATED_ID = #{updatedId,jdbcType=BIGINT},
      </if>
      <if test="updatedTime != null">
        UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where ID = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.ipokerface.admin.entity.AdminAccount">
    <!--
      WARNING - .generated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Wed Apr 07 11:25:23 CST 2021.
    -->
    update ADMIN_ACCOUNT
    set USERNAME = #{username,jdbcType=VARCHAR},
      MOBILE = #{mobile,jdbcType=VARCHAR},
      NAME = #{name,jdbcType=VARCHAR},
      PASSWORD = #{password,jdbcType=VARCHAR},
      SALT = #{salt,jdbcType=VARCHAR},
      STATUS = #{status,jdbcType=VARCHAR},
      VERSION = #{version,jdbcType=INTEGER},
      REMARK = #{remark,jdbcType=VARCHAR},
      STATE = #{state,jdbcType=VARCHAR},
      CREATED_ID = #{createdId,jdbcType=BIGINT},
      CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
      UPDATED_ID = #{updatedId,jdbcType=BIGINT},
      UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=BIGINT}
  </update>
</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy