mapper.AdminAuthorityMapper.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.AdminAuthorityMapper"> <resultMap id="BaseResultMap" type="cn.ipokerface.admin.entity.AdminAuthority"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:28:55 CST 2021. --> <id column="ID" jdbcType="BIGINT" property="id" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="DESCRIPTION" jdbcType="VARCHAR" property="description" /> <result column="CATEGORY" jdbcType="VARCHAR" property="category" /> <result column="CODE" jdbcType="VARCHAR" property="code" /> <result column="ROUTE" jdbcType="VARCHAR" property="route" /> <result column="LINK" jdbcType="VARCHAR" property="link" /> <result column="PARENT" jdbcType="BIGINT" property="parent" /> <result column="SORT" jdbcType="INTEGER" property="sort" /> <result column="ICON" jdbcType="VARCHAR" property="icon" /> <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:28:55 CST 2021. --> ID, NAME, DESCRIPTION, CATEGORY, CODE, ROUTE, LINK, PARENT, SORT, ICON, 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:28:55 CST 2021. --> select <include refid="Base_Column_List" /> from ADMIN_AUTHORITY 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:28:55 CST 2021. --> delete from ADMIN_AUTHORITY where ID = #{id,jdbcType=BIGINT} </delete> <insert id="insert" parameterType="cn.ipokerface.admin.entity.AdminAuthority"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:28:55 CST 2021. --> insert into ADMIN_AUTHORITY (ID, NAME, DESCRIPTION, CATEGORY, CODE, ROUTE, LINK, PARENT, SORT, ICON, VERSION, REMARK, STATE, CREATED_ID, CREATED_TIME, UPDATED_ID, UPDATED_TIME) values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{route,jdbcType=VARCHAR}, #{link,jdbcType=VARCHAR}, #{parent,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, #{icon,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.AdminAuthority"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:28:55 CST 2021. --> insert into ADMIN_AUTHORITY <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="name != null"> NAME, </if> <if test="description != null"> DESCRIPTION, </if> <if test="category != null"> CATEGORY, </if> <if test="code != null"> CODE, </if> <if test="route != null"> ROUTE, </if> <if test="link != null"> LINK, </if> <if test="parent != null"> PARENT, </if> <if test="sort != null"> SORT, </if> <if test="icon != null"> ICON, </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="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="description != null"> #{description,jdbcType=VARCHAR}, </if> <if test="category != null"> #{category,jdbcType=VARCHAR}, </if> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="route != null"> #{route,jdbcType=VARCHAR}, </if> <if test="link != null"> #{link,jdbcType=VARCHAR}, </if> <if test="parent != null"> #{parent,jdbcType=BIGINT}, </if> <if test="sort != null"> #{sort,jdbcType=INTEGER}, </if> <if test="icon != null"> #{icon,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.AdminAuthority"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:28:55 CST 2021. --> update ADMIN_AUTHORITY <set> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="description != null"> DESCRIPTION = #{description,jdbcType=VARCHAR}, </if> <if test="category != null"> CATEGORY = #{category,jdbcType=VARCHAR}, </if> <if test="code != null"> CODE = #{code,jdbcType=VARCHAR}, </if> <if test="route != null"> ROUTE = #{route,jdbcType=VARCHAR}, </if> <if test="link != null"> LINK = #{link,jdbcType=VARCHAR}, </if> <if test="parent != null"> PARENT = #{parent,jdbcType=BIGINT}, </if> <if test="sort != null"> SORT = #{sort,jdbcType=INTEGER}, </if> <if test="icon != null"> ICON = #{icon,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.AdminAuthority"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed Apr 07 11:28:55 CST 2021. --> update ADMIN_AUTHORITY set NAME = #{name,jdbcType=VARCHAR}, DESCRIPTION = #{description,jdbcType=VARCHAR}, CATEGORY = #{category,jdbcType=VARCHAR}, CODE = #{code,jdbcType=VARCHAR}, ROUTE = #{route,jdbcType=VARCHAR}, LINK = #{link,jdbcType=VARCHAR}, PARENT = #{parent,jdbcType=BIGINT}, SORT = #{sort,jdbcType=INTEGER}, ICON = #{icon,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