<?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.yckj.dao.TbUserInfDao">
|
<resultMap id="BaseResultMap" type="com.yckj.bean.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="BOOLEAN" property="ubaojiusr" />
|
<result column="uNote" jdbcType="VARCHAR" property="unote" />
|
<result column="upassword" jdbcType="VARCHAR" property="upassword" />
|
</resultMap>
|
<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
|
</sql>
|
<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>
|
<insert id="insert" keyColumn="uId" keyProperty="uid" parameterType="com.yckj.bean.TbUserInf" useGeneratedKeys="true">
|
insert into tb_user_inf (uSnId, uName, uShenFenId,
|
uEmployeeId, uTelephone, uMobilephone,
|
uEmail, uAddr, uBirthDay,
|
uAccessionDay, uSex, uDepartment,
|
uProTitle, uAuthority, uJobGroup,
|
uDuties, uTasks, uBaojiUsr,
|
uNote, upassword)
|
values (#{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=BOOLEAN},
|
#{unote,jdbcType=VARCHAR}, #{upassword,jdbcType=VARCHAR})
|
</insert>
|
<insert id="insertSelective" keyColumn="uId" keyProperty="uid" parameterType="com.yckj.bean.TbUserInf" useGeneratedKeys="true">
|
insert into tb_user_inf
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<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>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<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=BOOLEAN},
|
</if>
|
<if test="unote != null">
|
#{unote,jdbcType=VARCHAR},
|
</if>
|
<if test="upassword != null">
|
#{upassword,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.yckj.bean.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=BOOLEAN},
|
</if>
|
<if test="unote != null">
|
uNote = #{unote,jdbcType=VARCHAR},
|
</if>
|
<if test="upassword != null">
|
upassword = #{upassword,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where `uId` = #{uid,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.yckj.bean.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=BOOLEAN},
|
uNote = #{unote,jdbcType=VARCHAR},
|
upassword = #{upassword,jdbcType=VARCHAR}
|
where `uId` = #{uid,jdbcType=BIGINT}
|
</update>
|
</mapper>
|