郑永安
2023-06-19 f65443d8abeaedc9d102324565e8368e7c9d90c8
src/main/java/com/gk/firework/Mapper/mybatis/TransportCertProductMapper.xml
对比新文件
@@ -0,0 +1,172 @@
<?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.TransportCertProductMapper" >
  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.TransportCertProduct" >
    <!--          -->
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="certificatecode" property="certificatecode" jdbcType="VARCHAR" />
    <result column="productcode" property="productcode" jdbcType="VARCHAR" />
    <result column="productnum" property="productnum" jdbcType="INTEGER" />
    <result column="type" property="type" jdbcType="VARCHAR" />
    <result column="name" property="name" jdbcType="VARCHAR" />
    <result column="level" property="level" jdbcType="VARCHAR" />
    <result column="packing" property="packing" jdbcType="VARCHAR" />
    <result column="specification" property="specification" jdbcType="VARCHAR" />
    <result column="validflag" property="validflag" jdbcType="BIT" />
    <result column="num" property="num" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--          -->
    id, certificatecode, productcode, productnum, type, name, level, packing, specification,
    validflag, num
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    <!--          -->
    select
    <include refid="Base_Column_List" />
    from transportcertproduct
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    <!--          -->
    delete from transportcertproduct
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.gk.firework.Domain.TransportCertProduct" >
    <!--          -->
    insert into transportcertproduct (id, certificatecode, productcode,
      productnum, type, name,
      level, packing, specification,
      validflag, num)
    values (#{id,jdbcType=BIGINT}, #{certificatecode,jdbcType=VARCHAR}, #{productcode,jdbcType=VARCHAR},
      #{productnum,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
      #{level,jdbcType=VARCHAR}, #{packing,jdbcType=VARCHAR}, #{specification,jdbcType=VARCHAR},
      #{validflag,jdbcType=BIT}, #{num,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.gk.firework.Domain.TransportCertProduct" >
    <!--          -->
    insert into transportcertproduct
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="certificatecode != null" >
        certificatecode,
      </if>
      <if test="productcode != null" >
        productcode,
      </if>
      <if test="productnum != null" >
        productnum,
      </if>
      <if test="type != null" >
        type,
      </if>
      <if test="name != null" >
        name,
      </if>
      <if test="level != null" >
        level,
      </if>
      <if test="packing != null" >
        packing,
      </if>
      <if test="specification != null" >
        specification,
      </if>
      <if test="validflag != null" >
        validflag,
      </if>
      <if test="num != null" >
        num,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=BIGINT},
      </if>
      <if test="certificatecode != null" >
        #{certificatecode,jdbcType=VARCHAR},
      </if>
      <if test="productcode != null" >
        #{productcode,jdbcType=VARCHAR},
      </if>
      <if test="productnum != null" >
        #{productnum,jdbcType=INTEGER},
      </if>
      <if test="type != null" >
        #{type,jdbcType=VARCHAR},
      </if>
      <if test="name != null" >
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="level != null" >
        #{level,jdbcType=VARCHAR},
      </if>
      <if test="packing != null" >
        #{packing,jdbcType=VARCHAR},
      </if>
      <if test="specification != null" >
        #{specification,jdbcType=VARCHAR},
      </if>
      <if test="validflag != null" >
        #{validflag,jdbcType=BIT},
      </if>
      <if test="num != null" >
        #{num,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.TransportCertProduct" >
    <!--          -->
    update transportcertproduct
    <set >
      <if test="certificatecode != null" >
        certificatecode = #{certificatecode,jdbcType=VARCHAR},
      </if>
      <if test="productcode != null" >
        productcode = #{productcode,jdbcType=VARCHAR},
      </if>
      <if test="productnum != null" >
        productnum = #{productnum,jdbcType=INTEGER},
      </if>
      <if test="type != null" >
        type = #{type,jdbcType=VARCHAR},
      </if>
      <if test="name != null" >
        name = #{name,jdbcType=VARCHAR},
      </if>
      <if test="level != null" >
        level = #{level,jdbcType=VARCHAR},
      </if>
      <if test="packing != null" >
        packing = #{packing,jdbcType=VARCHAR},
      </if>
      <if test="specification != null" >
        specification = #{specification,jdbcType=VARCHAR},
      </if>
      <if test="validflag != null" >
        validflag = #{validflag,jdbcType=BIT},
      </if>
      <if test="num != null" >
        num = #{num,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.TransportCertProduct" >
    <!--          -->
    update transportcertproduct
    set certificatecode = #{certificatecode,jdbcType=VARCHAR},
      productcode = #{productcode,jdbcType=VARCHAR},
      productnum = #{productnum,jdbcType=INTEGER},
      type = #{type,jdbcType=VARCHAR},
      name = #{name,jdbcType=VARCHAR},
      level = #{level,jdbcType=VARCHAR},
      packing = #{packing,jdbcType=VARCHAR},
      specification = #{specification,jdbcType=VARCHAR},
      validflag = #{validflag,jdbcType=BIT},
      num = #{num,jdbcType=INTEGER}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>