郑永安
2023-06-19 59e91a4e9ddaf23cebb12993c774aa899ab22d16
src/main/java/com/gk/firework/Mapper/mybatis/EnterpriseStaffMapper.xml
对比新文件
@@ -0,0 +1,163 @@
<?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.gk.firework.Mapper.EnterpriseStaffMapper" >
  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.EnterpriseStaff" >
    <!--          -->
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="type" property="type" jdbcType="VARCHAR" />
    <result column="name" property="name" jdbcType="VARCHAR" />
    <result column="post" property="post" jdbcType="VARCHAR" />
    <result column="identify" property="identify" jdbcType="VARCHAR" />
    <result column="phone" property="phone" jdbcType="VARCHAR" />
    <result column="number" property="number" jdbcType="VARCHAR" />
    <result column="officephone" property="officephone" jdbcType="VARCHAR" />
    <result column="validstarttime" property="validstarttime" jdbcType="TIMESTAMP" />
    <result column="validendtime" property="validendtime" jdbcType="TIMESTAMP" />
    <result column="belongid" property="belongid" jdbcType="BIGINT" />
    <result column="belongname" property="belongname" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--          -->
    id, type, name, post, identify, phone, number, validstarttime, validendtime, belongid,
    belongname
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    <!--          -->
    select
    <include refid="Base_Column_List" />
    from enterprisestaff
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    <!--          -->
    delete from enterprisestaff
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insertSelective" parameterType="com.gk.firework.Domain.EnterpriseStaff" >
    <!--          -->
    insert into enterprisestaff
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="type != null" >
        type,
      </if>
      <if test="name != null" >
        name,
      </if>
      <if test="post != null" >
        post,
      </if>
      <if test="identify != null" >
        identify,
      </if>
      <if test="phone != null" >
        phone,
      </if>
      <if test="number != null" >
        number,
      </if>
      <if test="validstarttime != null" >
        validstarttime,
      </if>
      <if test="validendtime != null" >
        validendtime,
      </if>
      <if test="belongid != null" >
        belongid,
      </if>
      <if test="belongname != null" >
        belongname,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=BIGINT},
      </if>
      <if test="type != null" >
        #{type,jdbcType=VARCHAR},
      </if>
      <if test="name != null" >
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="post != null" >
        #{post,jdbcType=VARCHAR},
      </if>
      <if test="identify != null" >
        #{identify,jdbcType=VARCHAR},
      </if>
      <if test="phone != null" >
        #{phone,jdbcType=VARCHAR},
      </if>
      <if test="number != null" >
        #{number,jdbcType=VARCHAR},
      </if>
      <if test="validstarttime != null" >
        #{validstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="validendtime != null" >
        #{validendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="belongid != null" >
        #{belongid,jdbcType=BIGINT},
      </if>
      <if test="belongname != null" >
        #{belongname,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.EnterpriseStaff" >
    <!--          -->
    update enterprisestaff
    <set >
      <if test="type != null" >
        type = #{type,jdbcType=VARCHAR},
      </if>
      <if test="name != null" >
        name = #{name,jdbcType=VARCHAR},
      </if>
      <if test="post != null" >
        post = #{post,jdbcType=VARCHAR},
      </if>
      <if test="identify != null" >
        identify = #{identify,jdbcType=VARCHAR},
      </if>
      <if test="phone != null" >
        phone = #{phone,jdbcType=VARCHAR},
      </if>
      <if test="number != null" >
        number = #{number,jdbcType=VARCHAR},
      </if>
      <if test="validstarttime != null" >
        validstarttime = #{validstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="validendtime != null" >
        validendtime = #{validendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="belongid != null" >
        belongid = #{belongid,jdbcType=BIGINT},
      </if>
      <if test="belongname != null" >
        belongname = #{belongname,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.EnterpriseStaff" >
    <!--          -->
    update enterprisestaff
    set type = #{type,jdbcType=VARCHAR},
      name = #{name,jdbcType=VARCHAR},
      post = #{post,jdbcType=VARCHAR},
      identify = #{identify,jdbcType=VARCHAR},
      phone = #{phone,jdbcType=VARCHAR},
      number = #{number,jdbcType=VARCHAR},
      validstarttime = #{validstarttime,jdbcType=TIMESTAMP},
      validendtime = #{validendtime,jdbcType=TIMESTAMP},
      belongid = #{belongid,jdbcType=BIGINT},
      belongname = #{belongname,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>