郑永安
2023-06-19 2fcd97552d16718cc7997629fd637a73a5a4483f
src/main/java/com/gk/firework/Mapper/mybatis/TransportCertificateFileMapper.xml
对比新文件
@@ -0,0 +1,189 @@
<?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.TransportCertificateFileMapper" >
  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.TransportCertificateFile" >
    <!--          -->
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="certificatecode" property="certificatecode" jdbcType="VARCHAR" />
    <result column="url1" property="url1" jdbcType="VARCHAR" />
    <result column="url2" property="url2" jdbcType="VARCHAR" />
    <result column="url3" property="url3" jdbcType="VARCHAR" />
    <result column="url4" property="url4" jdbcType="VARCHAR" />
    <result column="url5" property="url5" jdbcType="VARCHAR" />
    <result column="url6" property="url6" jdbcType="VARCHAR" />
    <result column="url7" property="url7" jdbcType="VARCHAR" />
    <result column="url8" property="url8" jdbcType="VARCHAR" />
    <result column="url9" property="url9" jdbcType="VARCHAR" />
    <result column="url10" property="url10" jdbcType="VARCHAR" />
    <result column="validflag" property="validflag" jdbcType="BIT" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--          -->
    id, certificatecode, url1, url2, url3, url4, url5, url6, url7, url8, url9, url10,
    validflag
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    <!--          -->
    select
    <include refid="Base_Column_List" />
    from transportcertificatefile
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    <!--          -->
    delete from transportcertificatefile
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <update id="deleteByCertificateCode" parameterType="java.lang.String">
    update transportcertificatefile
    set validflag = 0
    where certificatecode= #{code}
  </update>
  <insert id="insertSelective" parameterType="com.gk.firework.Domain.TransportCertificateFile" >
    <!--          -->
    insert into transportcertificatefile
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="certificatecode != null" >
        certificatecode,
      </if>
      <if test="url1 != null" >
        url1,
      </if>
      <if test="url2 != null" >
        url2,
      </if>
      <if test="url3 != null" >
        url3,
      </if>
      <if test="url4 != null" >
        url4,
      </if>
      <if test="url5 != null" >
        url5,
      </if>
      <if test="url6 != null" >
        url6,
      </if>
      <if test="url7 != null" >
        url7,
      </if>
      <if test="url8 != null" >
        url8,
      </if>
      <if test="url9 != null" >
        url9,
      </if>
      <if test="url10 != null" >
        url10,
      </if>
      <if test="validflag != null" >
        validflag,
      </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="url1 != null" >
        #{url1,jdbcType=VARCHAR},
      </if>
      <if test="url2 != null" >
        #{url2,jdbcType=VARCHAR},
      </if>
      <if test="url3 != null" >
        #{url3,jdbcType=VARCHAR},
      </if>
      <if test="url4 != null" >
        #{url4,jdbcType=VARCHAR},
      </if>
      <if test="url5 != null" >
        #{url5,jdbcType=VARCHAR},
      </if>
      <if test="url6 != null" >
        #{url6,jdbcType=VARCHAR},
      </if>
      <if test="url7 != null" >
        #{url7,jdbcType=VARCHAR},
      </if>
      <if test="url8 != null" >
        #{url8,jdbcType=VARCHAR},
      </if>
      <if test="url9 != null" >
        #{url9,jdbcType=VARCHAR},
      </if>
      <if test="url10 != null" >
        #{url10,jdbcType=VARCHAR},
      </if>
      <if test="validflag != null" >
        #{validflag,jdbcType=BIT},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.TransportCertificateFile" >
    <!--          -->
    update transportcertificatefile
    <set >
      <if test="certificatecode != null" >
        certificatecode = #{certificatecode,jdbcType=VARCHAR},
      </if>
      <if test="url1 != null" >
        url1 = #{url1,jdbcType=VARCHAR},
      </if>
      <if test="url2 != null" >
        url2 = #{url2,jdbcType=VARCHAR},
      </if>
      <if test="url3 != null" >
        url3 = #{url3,jdbcType=VARCHAR},
      </if>
      <if test="url4 != null" >
        url4 = #{url4,jdbcType=VARCHAR},
      </if>
      <if test="url5 != null" >
        url5 = #{url5,jdbcType=VARCHAR},
      </if>
      <if test="url6 != null" >
        url6 = #{url6,jdbcType=VARCHAR},
      </if>
      <if test="url7 != null" >
        url7 = #{url7,jdbcType=VARCHAR},
      </if>
      <if test="url8 != null" >
        url8 = #{url8,jdbcType=VARCHAR},
      </if>
      <if test="url9 != null" >
        url9 = #{url9,jdbcType=VARCHAR},
      </if>
      <if test="url10 != null" >
        url10 = #{url10,jdbcType=VARCHAR},
      </if>
      <if test="validflag != null" >
        validflag = #{validflag,jdbcType=BIT},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.TransportCertificateFile" >
    <!--          -->
    update transportcertificatefile
    set certificatecode = #{certificatecode,jdbcType=VARCHAR},
      url1 = #{url1,jdbcType=VARCHAR},
      url2 = #{url2,jdbcType=VARCHAR},
      url3 = #{url3,jdbcType=VARCHAR},
      url4 = #{url4,jdbcType=VARCHAR},
      url5 = #{url5,jdbcType=VARCHAR},
      url6 = #{url6,jdbcType=VARCHAR},
      url7 = #{url7,jdbcType=VARCHAR},
      url8 = #{url8,jdbcType=VARCHAR},
      url9 = #{url9,jdbcType=VARCHAR},
      url10 = #{url10,jdbcType=VARCHAR},
      validflag = #{validflag,jdbcType=BIT}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>