
mapper.ConfigurationMapper.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.ConfigurationMapper"> <resultMap id="BaseResultMap" type="cn.ipokerface.admin.entity.Configuration"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Sun Apr 11 18:41:01 CST 2021. --> <id column="ID" jdbcType="BIGINT" property="id" /> <result column="CODE" jdbcType="VARCHAR" property="code" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="VALUE" jdbcType="VARCHAR" property="value" /> <result column="TYPE" jdbcType="VARCHAR" property="type" /> <result column="REMARK" jdbcType="VARCHAR" property="remark" /> <result column="STATE" jdbcType="VARCHAR" property="state" /> <result column="CREATED_BY" jdbcType="BIGINT" property="createdBy" /> <result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" /> <result column="UPDATED_BY" jdbcType="BIGINT" property="updatedBy" /> <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 Sun Apr 11 18:41:01 CST 2021. --> ID, CODE, NAME, VALUE, TYPE, REMARK, STATE, CREATED_BY, CREATED_TIME, UPDATED_BY, 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 Sun Apr 11 18:41:01 CST 2021. --> select <include refid="Base_Column_List" /> from CONFIGURATION 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 Sun Apr 11 18:41:01 CST 2021. --> delete from CONFIGURATION where ID = #{id,jdbcType=BIGINT} </delete> <insert id="insert" parameterType="cn.ipokerface.admin.entity.Configuration"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Sun Apr 11 18:41:01 CST 2021. --> insert into CONFIGURATION (ID, CODE, NAME, VALUE, TYPE, REMARK, STATE, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME) values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}, #{createdBy,jdbcType=BIGINT}, #{createdTime,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{updatedTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="cn.ipokerface.admin.entity.Configuration"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Sun Apr 11 18:41:01 CST 2021. --> insert into CONFIGURATION <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="code != null"> CODE, </if> <if test="name != null"> NAME, </if> <if test="value != null"> VALUE, </if> <if test="type != null"> TYPE, </if> <if test="remark != null"> REMARK, </if> <if test="state != null"> STATE, </if> <if test="createdBy != null"> CREATED_BY, </if> <if test="createdTime != null"> CREATED_TIME, </if> <if test="updatedBy != null"> UPDATED_BY, </if> <if test="updatedTime != null"> UPDATED_TIME, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=BIGINT}, </if> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="value != null"> #{value,jdbcType=VARCHAR}, </if> <if test="type != null"> #{type,jdbcType=VARCHAR}, </if> <if test="remark != null"> #{remark,jdbcType=VARCHAR}, </if> <if test="state != null"> #{state,jdbcType=VARCHAR}, </if> <if test="createdBy != null"> #{createdBy,jdbcType=BIGINT}, </if> <if test="createdTime != null"> #{createdTime,jdbcType=TIMESTAMP}, </if> <if test="updatedBy != null"> #{updatedBy,jdbcType=BIGINT}, </if> <if test="updatedTime != null"> #{updatedTime,jdbcType=TIMESTAMP}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="cn.ipokerface.admin.entity.Configuration"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Sun Apr 11 18:41:01 CST 2021. --> update CONFIGURATION <set> <if test="code != null"> CODE = #{code,jdbcType=VARCHAR}, </if> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="value != null"> VALUE = #{value,jdbcType=VARCHAR}, </if> <if test="type != null"> TYPE = #{type,jdbcType=VARCHAR}, </if> <if test="remark != null"> REMARK = #{remark,jdbcType=VARCHAR}, </if> <if test="state != null"> STATE = #{state,jdbcType=VARCHAR}, </if> <if test="createdBy != null"> CREATED_BY = #{createdBy,jdbcType=BIGINT}, </if> <if test="createdTime != null"> CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP}, </if> <if test="updatedBy != null"> UPDATED_BY = #{updatedBy,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.Configuration"> <!-- WARNING - .generated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Sun Apr 11 18:41:01 CST 2021. --> update CONFIGURATION set CODE = #{code,jdbcType=VARCHAR}, NAME = #{name,jdbcType=VARCHAR}, VALUE = #{value,jdbcType=VARCHAR}, TYPE = #{type,jdbcType=VARCHAR}, REMARK = #{remark,jdbcType=VARCHAR}, STATE = #{state,jdbcType=VARCHAR}, CREATED_BY = #{createdBy,jdbcType=BIGINT}, CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP}, UPDATED_BY = #{updatedBy,jdbcType=BIGINT}, UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP} where ID = #{id,jdbcType=BIGINT} </update> </mapper>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy