|
|
@@ -0,0 +1,260 @@
|
|
|
+<?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.aijia.peixun.dao.UserMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.aijia.peixun.entity.User">
|
|
|
+ <constructor>
|
|
|
+ <idArg column="id" javaType="java.lang.Integer" jdbcType="INTEGER" />
|
|
|
+ <arg column="name" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="telephoneNo" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="email" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="sex" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="age" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="correctingsub" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="typeofjob" javaType="java.lang.Integer" jdbcType="INTEGER" />
|
|
|
+ <arg column="createtime" javaType="java.util.Date" jdbcType="TIMESTAMP" />
|
|
|
+ <arg column="userstate" javaType="java.lang.Integer" jdbcType="INTEGER" />
|
|
|
+ <arg column="area" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="typeofuser" javaType="java.lang.Integer" jdbcType="INTEGER" />
|
|
|
+ <arg column="examinetime" javaType="java.util.Date" jdbcType="TIMESTAMP" />
|
|
|
+ <arg column="examinenum" javaType="java.lang.Integer" jdbcType="INTEGER" />
|
|
|
+ <arg column="backup1" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="backup2" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="backup3" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="backup4" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ <arg column="backup5" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
|
+ </constructor>
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, name, telephoneNo, email, sex, age, correctingsub, typeofjob, createtime, userstate,
|
|
|
+ area, typeofuser, examinetime, examinenum, backup1, backup2, backup3, backup4, backup5
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from jianzhi_peixun_user
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from jianzhi_peixun_user
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.aijia.peixun.entity.User">
|
|
|
+ insert into jianzhi_peixun_user (id, name, telephoneNo,
|
|
|
+ email, sex, age, correctingsub,
|
|
|
+ typeofjob, createtime, userstate,
|
|
|
+ area, typeofuser, examinetime,
|
|
|
+ examinenum, backup1, backup2,
|
|
|
+ backup3, backup4, backup5
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{telephoneno,jdbcType=VARCHAR},
|
|
|
+ #{email,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{age,jdbcType=VARCHAR}, #{correctingsub,jdbcType=VARCHAR},
|
|
|
+ #{typeofjob,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP}, #{userstate,jdbcType=INTEGER},
|
|
|
+ #{area,jdbcType=VARCHAR}, #{typeofuser,jdbcType=INTEGER}, #{examinetime,jdbcType=TIMESTAMP},
|
|
|
+ #{examinenum,jdbcType=INTEGER}, #{backup1,jdbcType=VARCHAR}, #{backup2,jdbcType=VARCHAR},
|
|
|
+ #{backup3,jdbcType=VARCHAR}, #{backup4,jdbcType=VARCHAR}, #{backup5,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.aijia.peixun.entity.User">
|
|
|
+ insert into jianzhi_peixun_user
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ name,
|
|
|
+ </if>
|
|
|
+ <if test="telephoneno != null">
|
|
|
+ telephoneNo,
|
|
|
+ </if>
|
|
|
+ <if test="email != null">
|
|
|
+ email,
|
|
|
+ </if>
|
|
|
+ <if test="sex != null">
|
|
|
+ sex,
|
|
|
+ </if>
|
|
|
+ <if test="age != null">
|
|
|
+ age,
|
|
|
+ </if>
|
|
|
+ <if test="correctingsub != null">
|
|
|
+ correctingsub,
|
|
|
+ </if>
|
|
|
+ <if test="typeofjob != null">
|
|
|
+ typeofjob,
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ createtime,
|
|
|
+ </if>
|
|
|
+ <if test="userstate != null">
|
|
|
+ userstate,
|
|
|
+ </if>
|
|
|
+ <if test="area != null">
|
|
|
+ area,
|
|
|
+ </if>
|
|
|
+ <if test="typeofuser != null">
|
|
|
+ typeofuser,
|
|
|
+ </if>
|
|
|
+ <if test="examinetime != null">
|
|
|
+ examinetime,
|
|
|
+ </if>
|
|
|
+ <if test="examinenum != null">
|
|
|
+ examinenum,
|
|
|
+ </if>
|
|
|
+ <if test="backup1 != null">
|
|
|
+ backup1,
|
|
|
+ </if>
|
|
|
+ <if test="backup2 != null">
|
|
|
+ backup2,
|
|
|
+ </if>
|
|
|
+ <if test="backup3 != null">
|
|
|
+ backup3,
|
|
|
+ </if>
|
|
|
+ <if test="backup4 != null">
|
|
|
+ backup4,
|
|
|
+ </if>
|
|
|
+ <if test="backup5 != null">
|
|
|
+ backup5,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="telephoneno != null">
|
|
|
+ #{telephoneno,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="email != null">
|
|
|
+ #{email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sex != null">
|
|
|
+ #{sex,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="age != null">
|
|
|
+ #{age,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="correctingsub != null">
|
|
|
+ #{correctingsub,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="typeofjob != null">
|
|
|
+ #{typeofjob,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="userstate != null">
|
|
|
+ #{userstate,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="area != null">
|
|
|
+ #{area,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="typeofuser != null">
|
|
|
+ #{typeofuser,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="examinetime != null">
|
|
|
+ #{examinetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="examinenum != null">
|
|
|
+ #{examinenum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="backup1 != null">
|
|
|
+ #{backup1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup2 != null">
|
|
|
+ #{backup2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup3 != null">
|
|
|
+ #{backup3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup4 != null">
|
|
|
+ #{backup4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup5 != null">
|
|
|
+ #{backup5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.aijia.peixun.entity.User">
|
|
|
+ update jianzhi_peixun_user
|
|
|
+ <set>
|
|
|
+ <if test="name != null">
|
|
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="telephoneno != null">
|
|
|
+ telephoneNo = #{telephoneno,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="email != null">
|
|
|
+ email = #{email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sex != null">
|
|
|
+ sex = #{sex,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="age != null">
|
|
|
+ age = #{age,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="correctingsub != null">
|
|
|
+ correctingsub = #{correctingsub,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="typeofjob != null">
|
|
|
+ typeofjob = #{typeofjob,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ createtime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="userstate != null">
|
|
|
+ userstate = #{userstate,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="area != null">
|
|
|
+ area = #{area,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="typeofuser != null">
|
|
|
+ typeofuser = #{typeofuser,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="examinetime != null">
|
|
|
+ examinetime = #{examinetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="examinenum != null">
|
|
|
+ examinenum = #{examinenum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="backup1 != null">
|
|
|
+ backup1 = #{backup1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup2 != null">
|
|
|
+ backup2 = #{backup2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup3 != null">
|
|
|
+ backup3 = #{backup3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup4 != null">
|
|
|
+ backup4 = #{backup4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="backup5 != null">
|
|
|
+ backup5 = #{backup5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.aijia.peixun.entity.User">
|
|
|
+ update jianzhi_peixun_user
|
|
|
+ set name = #{name,jdbcType=VARCHAR},
|
|
|
+ telephoneNo = #{telephoneno,jdbcType=VARCHAR},
|
|
|
+ email = #{email,jdbcType=VARCHAR},
|
|
|
+ sex = #{sex,jdbcType=VARCHAR},
|
|
|
+ age = #{age,jdbcType=VARCHAR},
|
|
|
+ correctingsub = #{correctingsub,jdbcType=VARCHAR},
|
|
|
+ typeofjob = #{typeofjob,jdbcType=INTEGER},
|
|
|
+ createtime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ userstate = #{userstate,jdbcType=INTEGER},
|
|
|
+ area = #{area,jdbcType=VARCHAR},
|
|
|
+ typeofuser = #{typeofuser,jdbcType=INTEGER},
|
|
|
+ examinetime = #{examinetime,jdbcType=TIMESTAMP},
|
|
|
+ examinenum = #{examinenum,jdbcType=INTEGER},
|
|
|
+ backup1 = #{backup1,jdbcType=VARCHAR},
|
|
|
+ backup2 = #{backup2,jdbcType=VARCHAR},
|
|
|
+ backup3 = #{backup3,jdbcType=VARCHAR},
|
|
|
+ backup4 = #{backup4,jdbcType=VARCHAR},
|
|
|
+ backup5 = #{backup5,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|