liurunyu
2024-04-26 71609e40ba719ff40c27bb00d7f5f4af521a80e2
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?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.dy.pmsGlobal.daoOth.OthFileMapper">
  <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
    <!--@Table oth_file-->
    <id column="id" property="id" />
    <result column="org_name" property="orgName" />
    <result column="ext_name" property="extName" />
    <result column="new_name" property="newName" />
    <result column="hash" property="hash" />
    <result column="file_path" property="filePath" />
    <result column="download_path" property="downloadPath" />
    <result column="dt" property="dt" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, org_name, ext_name, new_name, hash, file_path, download_path, dt
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    from oth_file
    where id = #{id}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--@mbg.generated-->
    delete from oth_file
    where id = #{id}
  </delete>
  <insert id="insert" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
    insert into oth_file (id, org_name, ext_name, new_name, hash, file_path, download_path, 
      dt)
    values (#{id}, #{orgName}, #{extName}, #{newName}, #{hash}, #{filePath}, #{downloadPath}, 
      #{dt})
  </insert>
  <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
    insert into oth_file
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="orgName != null">
        org_name,
      </if>
      <if test="extName != null">
        ext_name,
      </if>
      <if test="newName != null">
        new_name,
      </if>
      <if test="hash != null">
        hash,
      </if>
      <if test="filePath != null">
        file_path,
      </if>
      <if test="downloadPath != null">
        download_path,
      </if>
      <if test="dt != null">
        dt,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id},
      </if>
      <if test="orgName != null">
        #{orgName},
      </if>
      <if test="extName != null">
        #{extName},
      </if>
      <if test="newName != null">
        #{newName},
      </if>
      <if test="hash != null">
        #{hash},
      </if>
      <if test="filePath != null">
        #{filePath},
      </if>
      <if test="downloadPath != null">
        #{downloadPath},
      </if>
      <if test="dt != null">
        #{dt},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
    update oth_file
    <set>
      <if test="orgName != null">
        org_name = #{orgName},
      </if>
      <if test="extName != null">
        ext_name = #{extName},
      </if>
      <if test="newName != null">
        new_name = #{newName},
      </if>
      <if test="hash != null">
        hash = #{hash},
      </if>
      <if test="filePath != null">
        file_path = #{filePath},
      </if>
      <if test="downloadPath != null">
        download_path = #{downloadPath},
      </if>
      <if test="dt != null">
        dt = #{dt},
      </if>
    </set>
    where id = #{id}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
    update oth_file
    set org_name = #{orgName},
      ext_name = #{extName},
      new_name = #{newName},
      hash = #{hash},
      file_path = #{filePath},
      download_path = #{downloadPath},
      dt = #{dt}
    where id = #{id}
  </update>
</mapper>