<?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="com.lxw.genereator.mapper.TbUserInfMapper">
|
<resultMap id="BaseResultMap" type="com.lxw.genereator.po.TbUserInf">
|
<id column="uId" jdbcType="BIGINT" property="uid" />
|
<result column="uSnId" jdbcType="VARCHAR" property="usnid" />
|
<result column="uName" jdbcType="VARCHAR" property="uname" />
|
<result column="uShenFenId" jdbcType="VARCHAR" property="ushenfenid" />
|
<result column="uEmployeeId" jdbcType="VARCHAR" property="uemployeeid" />
|
<result column="uTelephone" jdbcType="VARCHAR" property="utelephone" />
|
<result column="uMobilephone" jdbcType="VARCHAR" property="umobilephone" />
|
<result column="uEmail" jdbcType="VARCHAR" property="uemail" />
|
<result column="uAddr" jdbcType="VARCHAR" property="uaddr" />
|
<result column="uBirthDay" jdbcType="DATE" property="ubirthday" />
|
<result column="uAccessionDay" jdbcType="DATE" property="uaccessionday" />
|
<result column="uSex" jdbcType="VARCHAR" property="usex" />
|
<result column="uDepartment" jdbcType="VARCHAR" property="udepartment" />
|
<result column="uProTitle" jdbcType="VARCHAR" property="uprotitle" />
|
<result column="uAuthority" jdbcType="VARCHAR" property="uauthority" />
|
<result column="uJobGroup" jdbcType="VARCHAR" property="ujobgroup" />
|
<result column="uDuties" jdbcType="VARCHAR" property="uduties" />
|
<result column="uTasks" jdbcType="VARCHAR" property="utasks" />
|
<result column="uBaojiUsr" jdbcType="BIT" property="ubaojiusr" />
|
<result column="uNote" jdbcType="VARCHAR" property="unote" />
|
<result column="upassword" jdbcType="VARCHAR" property="upassword" />
|
<result column="uPubKeyX" jdbcType="VARCHAR" property="upubkeyx" />
|
<result column="uPubKeyY" jdbcType="VARCHAR" property="upubkeyy" />
|
<result column="uKey_ID" jdbcType="VARCHAR" property="ukeyId" />
|
</resultMap>
|
<sql id="Example_Where_Clause">
|
<where>
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
<if test="criteria.valid">
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
<foreach collection="criteria.criteria" item="criterion">
|
<choose>
|
<when test="criterion.noValue">
|
and ${criterion.condition}
|
</when>
|
<when test="criterion.singleValue">
|
and ${criterion.condition} #{criterion.value}
|
</when>
|
<when test="criterion.betweenValue">
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
</when>
|
<when test="criterion.listValue">
|
and ${criterion.condition}
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
#{listItem}
|
</foreach>
|
</when>
|
</choose>
|
</foreach>
|
</trim>
|
</if>
|
</foreach>
|
</where>
|
</sql>
|
<sql id="Update_By_Example_Where_Clause">
|
<where>
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
<if test="criteria.valid">
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
<foreach collection="criteria.criteria" item="criterion">
|
<choose>
|
<when test="criterion.noValue">
|
and ${criterion.condition}
|
</when>
|
<when test="criterion.singleValue">
|
and ${criterion.condition} #{criterion.value}
|
</when>
|
<when test="criterion.betweenValue">
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
</when>
|
<when test="criterion.listValue">
|
and ${criterion.condition}
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
#{listItem}
|
</foreach>
|
</when>
|
</choose>
|
</foreach>
|
</trim>
|
</if>
|
</foreach>
|
</where>
|
</sql>
|
<sql id="Base_Column_List">
|
uId, uSnId, uName, uShenFenId, uEmployeeId, uTelephone, uMobilephone, uEmail, uAddr,
|
uBirthDay, uAccessionDay, uSex, uDepartment, uProTitle, uAuthority, uJobGroup, uDuties,
|
uTasks, uBaojiUsr, uNote, upassword, uPubKeyX, uPubKeyY, uKey_ID
|
</sql>
|
<select id="selectByExample" parameterType="com.lxw.genereator.po.TbUserInfExample" resultMap="BaseResultMap">
|
select
|
<if test="distinct">
|
distinct
|
</if>
|
<include refid="Base_Column_List" />
|
from tb_user_inf
|
<if test="_parameter != null">
|
<include refid="Example_Where_Clause" />
|
</if>
|
<if test="orderByClause != null">
|
order by ${orderByClause}
|
</if>
|
</select>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from tb_user_inf
|
where uId = #{uid,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
delete from tb_user_inf
|
where uId = #{uid,jdbcType=BIGINT}
|
</delete>
|
<delete id="deleteByExample" parameterType="com.lxw.genereator.po.TbUserInfExample">
|
delete from tb_user_inf
|
<if test="_parameter != null">
|
<include refid="Example_Where_Clause" />
|
</if>
|
</delete>
|
<insert id="insert" parameterType="com.lxw.genereator.po.TbUserInf">
|
insert into tb_user_inf (uId, uSnId, uName,
|
uShenFenId, uEmployeeId, uTelephone,
|
uMobilephone, uEmail, uAddr,
|
uBirthDay, uAccessionDay, uSex,
|
uDepartment, uProTitle, uAuthority,
|
uJobGroup, uDuties, uTasks,
|
uBaojiUsr, uNote, upassword,
|
uPubKeyX, uPubKeyY, uKey_ID
|
)
|
values (#{uid,jdbcType=BIGINT}, #{usnid,jdbcType=VARCHAR}, #{uname,jdbcType=VARCHAR},
|
#{ushenfenid,jdbcType=VARCHAR}, #{uemployeeid,jdbcType=VARCHAR}, #{utelephone,jdbcType=VARCHAR},
|
#{umobilephone,jdbcType=VARCHAR}, #{uemail,jdbcType=VARCHAR}, #{uaddr,jdbcType=VARCHAR},
|
#{ubirthday,jdbcType=DATE}, #{uaccessionday,jdbcType=DATE}, #{usex,jdbcType=VARCHAR},
|
#{udepartment,jdbcType=VARCHAR}, #{uprotitle,jdbcType=VARCHAR}, #{uauthority,jdbcType=VARCHAR},
|
#{ujobgroup,jdbcType=VARCHAR}, #{uduties,jdbcType=VARCHAR}, #{utasks,jdbcType=VARCHAR},
|
#{ubaojiusr,jdbcType=BIT}, #{unote,jdbcType=VARCHAR}, #{upassword,jdbcType=VARCHAR},
|
#{upubkeyx,jdbcType=VARCHAR}, #{upubkeyy,jdbcType=VARCHAR}, #{ukeyId,jdbcType=VARCHAR}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.lxw.genereator.po.TbUserInf">
|
insert into tb_user_inf
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="uid != null">
|
uId,
|
</if>
|
<if test="usnid != null">
|
uSnId,
|
</if>
|
<if test="uname != null">
|
uName,
|
</if>
|
<if test="ushenfenid != null">
|
uShenFenId,
|
</if>
|
<if test="uemployeeid != null">
|
uEmployeeId,
|
</if>
|
<if test="utelephone != null">
|
uTelephone,
|
</if>
|
<if test="umobilephone != null">
|
uMobilephone,
|
</if>
|
<if test="uemail != null">
|
uEmail,
|
</if>
|
<if test="uaddr != null">
|
uAddr,
|
</if>
|
<if test="ubirthday != null">
|
uBirthDay,
|
</if>
|
<if test="uaccessionday != null">
|
uAccessionDay,
|
</if>
|
<if test="usex != null">
|
uSex,
|
</if>
|
<if test="udepartment != null">
|
uDepartment,
|
</if>
|
<if test="uprotitle != null">
|
uProTitle,
|
</if>
|
<if test="uauthority != null">
|
uAuthority,
|
</if>
|
<if test="ujobgroup != null">
|
uJobGroup,
|
</if>
|
<if test="uduties != null">
|
uDuties,
|
</if>
|
<if test="utasks != null">
|
uTasks,
|
</if>
|
<if test="ubaojiusr != null">
|
uBaojiUsr,
|
</if>
|
<if test="unote != null">
|
uNote,
|
</if>
|
<if test="upassword != null">
|
upassword,
|
</if>
|
<if test="upubkeyx != null">
|
uPubKeyX,
|
</if>
|
<if test="upubkeyy != null">
|
uPubKeyY,
|
</if>
|
<if test="ukeyId != null">
|
uKey_ID,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="uid != null">
|
#{uid,jdbcType=BIGINT},
|
</if>
|
<if test="usnid != null">
|
#{usnid,jdbcType=VARCHAR},
|
</if>
|
<if test="uname != null">
|
#{uname,jdbcType=VARCHAR},
|
</if>
|
<if test="ushenfenid != null">
|
#{ushenfenid,jdbcType=VARCHAR},
|
</if>
|
<if test="uemployeeid != null">
|
#{uemployeeid,jdbcType=VARCHAR},
|
</if>
|
<if test="utelephone != null">
|
#{utelephone,jdbcType=VARCHAR},
|
</if>
|
<if test="umobilephone != null">
|
#{umobilephone,jdbcType=VARCHAR},
|
</if>
|
<if test="uemail != null">
|
#{uemail,jdbcType=VARCHAR},
|
</if>
|
<if test="uaddr != null">
|
#{uaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="ubirthday != null">
|
#{ubirthday,jdbcType=DATE},
|
</if>
|
<if test="uaccessionday != null">
|
#{uaccessionday,jdbcType=DATE},
|
</if>
|
<if test="usex != null">
|
#{usex,jdbcType=VARCHAR},
|
</if>
|
<if test="udepartment != null">
|
#{udepartment,jdbcType=VARCHAR},
|
</if>
|
<if test="uprotitle != null">
|
#{uprotitle,jdbcType=VARCHAR},
|
</if>
|
<if test="uauthority != null">
|
#{uauthority,jdbcType=VARCHAR},
|
</if>
|
<if test="ujobgroup != null">
|
#{ujobgroup,jdbcType=VARCHAR},
|
</if>
|
<if test="uduties != null">
|
#{uduties,jdbcType=VARCHAR},
|
</if>
|
<if test="utasks != null">
|
#{utasks,jdbcType=VARCHAR},
|
</if>
|
<if test="ubaojiusr != null">
|
#{ubaojiusr,jdbcType=BIT},
|
</if>
|
<if test="unote != null">
|
#{unote,jdbcType=VARCHAR},
|
</if>
|
<if test="upassword != null">
|
#{upassword,jdbcType=VARCHAR},
|
</if>
|
<if test="upubkeyx != null">
|
#{upubkeyx,jdbcType=VARCHAR},
|
</if>
|
<if test="upubkeyy != null">
|
#{upubkeyy,jdbcType=VARCHAR},
|
</if>
|
<if test="ukeyId != null">
|
#{ukeyId,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<select id="countByExample" parameterType="com.lxw.genereator.po.TbUserInfExample" resultType="java.lang.Long">
|
select count(*) from tb_user_inf
|
<if test="_parameter != null">
|
<include refid="Example_Where_Clause" />
|
</if>
|
</select>
|
<update id="updateByExampleSelective" parameterType="map">
|
update tb_user_inf
|
<set>
|
<if test="record.uid != null">
|
uId = #{record.uid,jdbcType=BIGINT},
|
</if>
|
<if test="record.usnid != null">
|
uSnId = #{record.usnid,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uname != null">
|
uName = #{record.uname,jdbcType=VARCHAR},
|
</if>
|
<if test="record.ushenfenid != null">
|
uShenFenId = #{record.ushenfenid,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uemployeeid != null">
|
uEmployeeId = #{record.uemployeeid,jdbcType=VARCHAR},
|
</if>
|
<if test="record.utelephone != null">
|
uTelephone = #{record.utelephone,jdbcType=VARCHAR},
|
</if>
|
<if test="record.umobilephone != null">
|
uMobilephone = #{record.umobilephone,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uemail != null">
|
uEmail = #{record.uemail,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uaddr != null">
|
uAddr = #{record.uaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="record.ubirthday != null">
|
uBirthDay = #{record.ubirthday,jdbcType=DATE},
|
</if>
|
<if test="record.uaccessionday != null">
|
uAccessionDay = #{record.uaccessionday,jdbcType=DATE},
|
</if>
|
<if test="record.usex != null">
|
uSex = #{record.usex,jdbcType=VARCHAR},
|
</if>
|
<if test="record.udepartment != null">
|
uDepartment = #{record.udepartment,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uprotitle != null">
|
uProTitle = #{record.uprotitle,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uauthority != null">
|
uAuthority = #{record.uauthority,jdbcType=VARCHAR},
|
</if>
|
<if test="record.ujobgroup != null">
|
uJobGroup = #{record.ujobgroup,jdbcType=VARCHAR},
|
</if>
|
<if test="record.uduties != null">
|
uDuties = #{record.uduties,jdbcType=VARCHAR},
|
</if>
|
<if test="record.utasks != null">
|
uTasks = #{record.utasks,jdbcType=VARCHAR},
|
</if>
|
<if test="record.ubaojiusr != null">
|
uBaojiUsr = #{record.ubaojiusr,jdbcType=BIT},
|
</if>
|
<if test="record.unote != null">
|
uNote = #{record.unote,jdbcType=VARCHAR},
|
</if>
|
<if test="record.upassword != null">
|
upassword = #{record.upassword,jdbcType=VARCHAR},
|
</if>
|
<if test="record.upubkeyx != null">
|
uPubKeyX = #{record.upubkeyx,jdbcType=VARCHAR},
|
</if>
|
<if test="record.upubkeyy != null">
|
uPubKeyY = #{record.upubkeyy,jdbcType=VARCHAR},
|
</if>
|
<if test="record.ukeyId != null">
|
uKey_ID = #{record.ukeyId,jdbcType=VARCHAR},
|
</if>
|
</set>
|
<if test="_parameter != null">
|
<include refid="Update_By_Example_Where_Clause" />
|
</if>
|
</update>
|
<update id="updateByExample" parameterType="map">
|
update tb_user_inf
|
set uId = #{record.uid,jdbcType=BIGINT},
|
uSnId = #{record.usnid,jdbcType=VARCHAR},
|
uName = #{record.uname,jdbcType=VARCHAR},
|
uShenFenId = #{record.ushenfenid,jdbcType=VARCHAR},
|
uEmployeeId = #{record.uemployeeid,jdbcType=VARCHAR},
|
uTelephone = #{record.utelephone,jdbcType=VARCHAR},
|
uMobilephone = #{record.umobilephone,jdbcType=VARCHAR},
|
uEmail = #{record.uemail,jdbcType=VARCHAR},
|
uAddr = #{record.uaddr,jdbcType=VARCHAR},
|
uBirthDay = #{record.ubirthday,jdbcType=DATE},
|
uAccessionDay = #{record.uaccessionday,jdbcType=DATE},
|
uSex = #{record.usex,jdbcType=VARCHAR},
|
uDepartment = #{record.udepartment,jdbcType=VARCHAR},
|
uProTitle = #{record.uprotitle,jdbcType=VARCHAR},
|
uAuthority = #{record.uauthority,jdbcType=VARCHAR},
|
uJobGroup = #{record.ujobgroup,jdbcType=VARCHAR},
|
uDuties = #{record.uduties,jdbcType=VARCHAR},
|
uTasks = #{record.utasks,jdbcType=VARCHAR},
|
uBaojiUsr = #{record.ubaojiusr,jdbcType=BIT},
|
uNote = #{record.unote,jdbcType=VARCHAR},
|
upassword = #{record.upassword,jdbcType=VARCHAR},
|
uPubKeyX = #{record.upubkeyx,jdbcType=VARCHAR},
|
uPubKeyY = #{record.upubkeyy,jdbcType=VARCHAR},
|
uKey_ID = #{record.ukeyId,jdbcType=VARCHAR}
|
<if test="_parameter != null">
|
<include refid="Update_By_Example_Where_Clause" />
|
</if>
|
</update>
|
<update id="updateByPrimaryKeySelective" parameterType="com.lxw.genereator.po.TbUserInf">
|
update tb_user_inf
|
<set>
|
<if test="usnid != null">
|
uSnId = #{usnid,jdbcType=VARCHAR},
|
</if>
|
<if test="uname != null">
|
uName = #{uname,jdbcType=VARCHAR},
|
</if>
|
<if test="ushenfenid != null">
|
uShenFenId = #{ushenfenid,jdbcType=VARCHAR},
|
</if>
|
<if test="uemployeeid != null">
|
uEmployeeId = #{uemployeeid,jdbcType=VARCHAR},
|
</if>
|
<if test="utelephone != null">
|
uTelephone = #{utelephone,jdbcType=VARCHAR},
|
</if>
|
<if test="umobilephone != null">
|
uMobilephone = #{umobilephone,jdbcType=VARCHAR},
|
</if>
|
<if test="uemail != null">
|
uEmail = #{uemail,jdbcType=VARCHAR},
|
</if>
|
<if test="uaddr != null">
|
uAddr = #{uaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="ubirthday != null">
|
uBirthDay = #{ubirthday,jdbcType=DATE},
|
</if>
|
<if test="uaccessionday != null">
|
uAccessionDay = #{uaccessionday,jdbcType=DATE},
|
</if>
|
<if test="usex != null">
|
uSex = #{usex,jdbcType=VARCHAR},
|
</if>
|
<if test="udepartment != null">
|
uDepartment = #{udepartment,jdbcType=VARCHAR},
|
</if>
|
<if test="uprotitle != null">
|
uProTitle = #{uprotitle,jdbcType=VARCHAR},
|
</if>
|
<if test="uauthority != null">
|
uAuthority = #{uauthority,jdbcType=VARCHAR},
|
</if>
|
<if test="ujobgroup != null">
|
uJobGroup = #{ujobgroup,jdbcType=VARCHAR},
|
</if>
|
<if test="uduties != null">
|
uDuties = #{uduties,jdbcType=VARCHAR},
|
</if>
|
<if test="utasks != null">
|
uTasks = #{utasks,jdbcType=VARCHAR},
|
</if>
|
<if test="ubaojiusr != null">
|
uBaojiUsr = #{ubaojiusr,jdbcType=BIT},
|
</if>
|
<if test="unote != null">
|
uNote = #{unote,jdbcType=VARCHAR},
|
</if>
|
<if test="upassword != null">
|
upassword = #{upassword,jdbcType=VARCHAR},
|
</if>
|
<if test="upubkeyx != null">
|
uPubKeyX = #{upubkeyx,jdbcType=VARCHAR},
|
</if>
|
<if test="upubkeyy != null">
|
uPubKeyY = #{upubkeyy,jdbcType=VARCHAR},
|
</if>
|
<if test="ukeyId != null">
|
uKey_ID = #{ukeyId,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where uId = #{uid,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.lxw.genereator.po.TbUserInf">
|
update tb_user_inf
|
set uSnId = #{usnid,jdbcType=VARCHAR},
|
uName = #{uname,jdbcType=VARCHAR},
|
uShenFenId = #{ushenfenid,jdbcType=VARCHAR},
|
uEmployeeId = #{uemployeeid,jdbcType=VARCHAR},
|
uTelephone = #{utelephone,jdbcType=VARCHAR},
|
uMobilephone = #{umobilephone,jdbcType=VARCHAR},
|
uEmail = #{uemail,jdbcType=VARCHAR},
|
uAddr = #{uaddr,jdbcType=VARCHAR},
|
uBirthDay = #{ubirthday,jdbcType=DATE},
|
uAccessionDay = #{uaccessionday,jdbcType=DATE},
|
uSex = #{usex,jdbcType=VARCHAR},
|
uDepartment = #{udepartment,jdbcType=VARCHAR},
|
uProTitle = #{uprotitle,jdbcType=VARCHAR},
|
uAuthority = #{uauthority,jdbcType=VARCHAR},
|
uJobGroup = #{ujobgroup,jdbcType=VARCHAR},
|
uDuties = #{uduties,jdbcType=VARCHAR},
|
uTasks = #{utasks,jdbcType=VARCHAR},
|
uBaojiUsr = #{ubaojiusr,jdbcType=BIT},
|
uNote = #{unote,jdbcType=VARCHAR},
|
upassword = #{upassword,jdbcType=VARCHAR},
|
uPubKeyX = #{upubkeyx,jdbcType=VARCHAR},
|
uPubKeyY = #{upubkeyy,jdbcType=VARCHAR},
|
uKey_ID = #{ukeyId,jdbcType=VARCHAR}
|
where uId = #{uid,jdbcType=BIGINT}
|
</update>
|
</mapper>
|