Administrator
2023-06-19 49588f5a462ae7425e7eb030438a35fd80c246fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?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.ContractFileMapper" >
  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.ContractFile" >
    <!--          -->
    <result column="id" property="id" jdbcType="BIGINT" />
    <result column="ordercode" property="ordercode" jdbcType="VARCHAR" />
    <result column="filename" property="filename" jdbcType="VARCHAR" />
    <result column="url" property="url" jdbcType="VARCHAR" />
    <result column="validflag" property="validflag" jdbcType="BIT" />
    <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
    <result column="createby" property="createby" jdbcType="BIGINT" />
    <result column="createbyname" property="createbyname" jdbcType="VARCHAR" />
    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
    <result column="updateby" property="updateby" jdbcType="BIGINT" />
    <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" />
  </resultMap>
  <insert id="insert" parameterType="com.gk.firework.Domain.ContractFile" >
    <!--          -->
    insert into contractfile (id, ordercode, filename, 
      url, validflag, createtime, 
      createby, createbyname, updatetime, 
      updateby, updatebyname)
    values (#{id,jdbcType=BIGINT}, #{ordercode,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR}, 
      #{url,jdbcType=VARCHAR}, #{validflag,jdbcType=BIT}, #{createtime,jdbcType=TIMESTAMP}, 
      #{createby,jdbcType=BIGINT}, #{createbyname,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
      #{updateby,jdbcType=BIGINT}, #{updatebyname,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gk.firework.Domain.ContractFile" >
    <!--          -->
    insert into contractfile
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="ordercode != null" >
        ordercode,
      </if>
      <if test="filename != null" >
        filename,
      </if>
      <if test="url != null" >
        url,
      </if>
      <if test="validflag != null" >
        validflag,
      </if>
      <if test="createtime != null" >
        createtime,
      </if>
      <if test="createby != null" >
        createby,
      </if>
      <if test="createbyname != null" >
        createbyname,
      </if>
      <if test="updatetime != null" >
        updatetime,
      </if>
      <if test="updateby != null" >
        updateby,
      </if>
      <if test="updatebyname != null" >
        updatebyname,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=BIGINT},
      </if>
      <if test="ordercode != null" >
        #{ordercode,jdbcType=VARCHAR},
      </if>
      <if test="filename != null" >
        #{filename,jdbcType=VARCHAR},
      </if>
      <if test="url != null" >
        #{url,jdbcType=VARCHAR},
      </if>
      <if test="validflag != null" >
        #{validflag,jdbcType=BIT},
      </if>
      <if test="createtime != null" >
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="createby != null" >
        #{createby,jdbcType=BIGINT},
      </if>
      <if test="createbyname != null" >
        #{createbyname,jdbcType=VARCHAR},
      </if>
      <if test="updatetime != null" >
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateby != null" >
        #{updateby,jdbcType=BIGINT},
      </if>
      <if test="updatebyname != null" >
        #{updatebyname,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>