<?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.com.basic.face.discern.baseapi.user.PlaceMapper">
|
<resultMap id="BaseResultMap" type="cn.com.basic.face.discern.user.entity.Place">
|
<id column="ID" jdbcType="INTEGER" property="id" />
|
<result column="companyID" jdbcType="INTEGER" property="companyid" />
|
<result column="label" jdbcType="VARCHAR" property="label" />
|
<result column="authorizationID" jdbcType="VARCHAR" property="authorizationid" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
ID, companyID, label, authorizationID
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from t_place
|
where ID = #{id,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
delete from t_place
|
where ID = #{id,jdbcType=INTEGER}
|
</delete>
|
<insert id="insert" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
insert into t_place (ID, companyID, label,
|
authorizationID)
|
values (#{id,jdbcType=INTEGER}, #{companyid,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR},
|
#{authorizationid,jdbcType=VARCHAR})
|
</insert>
|
<insert id="insertSelective" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
insert into t_place
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
ID,
|
</if>
|
<if test="companyid != null">
|
companyID,
|
</if>
|
<if test="label != null">
|
label,
|
</if>
|
<if test="authorizationid != null">
|
authorizationID,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
#{id,jdbcType=INTEGER},
|
</if>
|
<if test="companyid != null">
|
#{companyid,jdbcType=INTEGER},
|
</if>
|
<if test="label != null">
|
#{label,jdbcType=VARCHAR},
|
</if>
|
<if test="authorizationid != null">
|
#{authorizationid,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
update t_place
|
<set>
|
<if test="companyid != null">
|
companyID = #{companyid,jdbcType=INTEGER},
|
</if>
|
<if test="label != null">
|
label = #{label,jdbcType=VARCHAR},
|
</if>
|
<if test="authorizationid != null">
|
authorizationID = #{authorizationid,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
update t_place
|
set companyID = #{companyid,jdbcType=INTEGER},
|
label = #{label,jdbcType=VARCHAR},
|
authorizationID = #{authorizationid,jdbcType=VARCHAR}
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<resultMap id="BaseResultMap" type="cn.com.basic.face.discern.user.entity.Place">
|
<id column="ID" jdbcType="INTEGER" property="id" />
|
<result column="companyID" jdbcType="INTEGER" property="companyid" />
|
<result column="label" jdbcType="VARCHAR" property="label" />
|
<result column="authorizationID" jdbcType="VARCHAR" property="authorizationid" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
ID, companyID, label, authorizationID
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from t_place
|
where ID = #{id,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
delete from t_place
|
where ID = #{id,jdbcType=INTEGER}
|
</delete>
|
<insert id="insert" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
<selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
|
SELECT LAST_INSERT_ID()
|
</selectKey>
|
insert into t_place (ID, companyID, label,
|
authorizationID)
|
values (#{id,jdbcType=INTEGER}, #{companyid,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR},
|
#{authorizationid,jdbcType=VARCHAR})
|
</insert>
|
<insert id="insertSelective" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
<selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
|
SELECT LAST_INSERT_ID()
|
</selectKey>
|
insert into t_place
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
ID,
|
<if test="companyid != null">
|
companyID,
|
</if>
|
<if test="label != null">
|
label,
|
</if>
|
<if test="authorizationid != null">
|
authorizationID,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
#{id,jdbcType=INTEGER},
|
<if test="companyid != null">
|
#{companyid,jdbcType=INTEGER},
|
</if>
|
<if test="label != null">
|
#{label,jdbcType=VARCHAR},
|
</if>
|
<if test="authorizationid != null">
|
#{authorizationid,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
update t_place
|
<set>
|
<if test="companyid != null">
|
companyID = #{companyid,jdbcType=INTEGER},
|
</if>
|
<if test="label != null">
|
label = #{label,jdbcType=VARCHAR},
|
</if>
|
<if test="authorizationid != null">
|
authorizationID = #{authorizationid,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
update t_place
|
set companyID = #{companyid,jdbcType=INTEGER},
|
label = #{label,jdbcType=VARCHAR},
|
authorizationID = #{authorizationid,jdbcType=VARCHAR}
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<resultMap id="BaseResultMap" type="cn.com.basic.face.discern.user.entity.Place">
|
<id column="ID" jdbcType="INTEGER" property="id" />
|
<result column="companyID" jdbcType="INTEGER" property="companyid" />
|
<result column="label" jdbcType="VARCHAR" property="label" />
|
<result column="authorizationID" jdbcType="VARCHAR" property="authorizationid" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
ID, companyID, label, authorizationID
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from t_place
|
where ID = #{id,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
delete from t_place
|
where ID = #{id,jdbcType=INTEGER}
|
</delete>
|
<insert id="insert" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
<selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
|
SELECT LAST_INSERT_ID()
|
</selectKey>
|
insert into t_place (ID, companyID, label,
|
authorizationID)
|
values (#{id,jdbcType=INTEGER}, #{companyid,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR},
|
#{authorizationid,jdbcType=VARCHAR})
|
</insert>
|
<insert id="insertSelective" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
<selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
|
SELECT LAST_INSERT_ID()
|
</selectKey>
|
insert into t_place
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
ID,
|
<if test="companyid != null">
|
companyID,
|
</if>
|
<if test="label != null">
|
label,
|
</if>
|
<if test="authorizationid != null">
|
authorizationID,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
#{id,jdbcType=INTEGER},
|
<if test="companyid != null">
|
#{companyid,jdbcType=INTEGER},
|
</if>
|
<if test="label != null">
|
#{label,jdbcType=VARCHAR},
|
</if>
|
<if test="authorizationid != null">
|
#{authorizationid,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
update t_place
|
<set>
|
<if test="companyid != null">
|
companyID = #{companyid,jdbcType=INTEGER},
|
</if>
|
<if test="label != null">
|
label = #{label,jdbcType=VARCHAR},
|
</if>
|
<if test="authorizationid != null">
|
authorizationID = #{authorizationid,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="cn.com.basic.face.discern.user.entity.Place">
|
update t_place
|
set companyID = #{companyid,jdbcType=INTEGER},
|
label = #{label,jdbcType=VARCHAR},
|
authorizationID = #{authorizationid,jdbcType=VARCHAR}
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
</mapper>
|