mapper.AdminRoleMapper.xml Maven / Gradle / Ivy
<?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.AdminRoleMapper"> <resultMap id="BaseResultMap" type="cn.ipokerface.admin.entity.AdminRole"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:26:01 CST 2021. --> <id column="ID" jdbcType="BIGINT" property="id" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="REMARK" jdbcType="VARCHAR" property="remark" /> <result column="VERSION" jdbcType="INTEGER" property="version" /> <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:26:01 CST 2021. --> ID, NAME, REMARK, VERSION, 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:26:01 CST 2021. --> select <include refid="Base_Column_List" /> from ADMIN_ROLE 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:26:01 CST 2021. --> delete from ADMIN_ROLE where ID = #{id,jdbcType=BIGINT} </delete> <insert id="insert" parameterType="cn.ipokerface.admin.entity.AdminRole"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:26:01 CST 2021. --> insert into ADMIN_ROLE (ID, NAME, REMARK, VERSION, STATE, CREATED_ID, CREATED_TIME, UPDATED_ID, UPDATED_TIME) values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{version,jdbcType=INTEGER}, #{state,jdbcType=VARCHAR}, #{createdId,jdbcType=BIGINT}, #{createdTime,jdbcType=TIMESTAMP}, #{updatedId,jdbcType=BIGINT}, #{updatedTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="cn.ipokerface.admin.entity.AdminRole"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:26:01 CST 2021. --> insert into ADMIN_ROLE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="name != null"> NAME, </if> <if test="remark != null"> REMARK, </if> <if test="version != null"> VERSION, </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="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="remark != null"> #{remark,jdbcType=VARCHAR}, </if> <if test="version != null"> #{version,jdbcType=INTEGER}, </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.AdminRole"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:26:01 CST 2021. --> update ADMIN_ROLE <set> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="remark != null"> REMARK = #{remark,jdbcType=VARCHAR}, </if> <if test="version != null"> VERSION = #{version,jdbcType=INTEGER}, </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.AdminRole"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:26:01 CST 2021. --> update ADMIN_ROLE set NAME = #{name,jdbcType=VARCHAR}, REMARK = #{remark,jdbcType=VARCHAR}, VERSION = #{version,jdbcType=INTEGER}, 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