|
|
@@ -5,16 +5,17 @@
|
|
5
|
5
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
6
|
6
|
<result column="keeper_id" property="keeperId" jdbcType="INTEGER" />
|
|
7
|
7
|
<result column="dataType" property="datatype" jdbcType="INTEGER" />
|
|
8
|
|
- <result column="type" property="type" jdbcType="INTEGER" />
|
|
|
8
|
+ <result column="type_s" property="typeS" jdbcType="INTEGER" />
|
|
9
|
9
|
<result column="occupation" property="occupation" jdbcType="INTEGER" />
|
|
10
|
10
|
<result column="college" property="college" jdbcType="VARCHAR" />
|
|
11
|
11
|
<result column="department" property="department" jdbcType="VARCHAR" />
|
|
12
|
12
|
<result column="education" property="education" jdbcType="INTEGER" />
|
|
13
|
13
|
<result column="degree" property="degree" jdbcType="INTEGER" />
|
|
14
|
14
|
<result column="degree_detailed" property="degreeDetailed" jdbcType="INTEGER" />
|
|
15
|
|
- <result column="rank" property="rank" jdbcType="INTEGER" />
|
|
|
15
|
+ <result column="rank_s" property="rankS" jdbcType="INTEGER" />
|
|
16
|
16
|
<result column="issue_facility" property="issueFacility" jdbcType="VARCHAR" />
|
|
17
|
17
|
<result column="issue_time" property="issueTime" jdbcType="TIMESTAMP" />
|
|
|
18
|
+ <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
|
18
|
19
|
</resultMap>
|
|
19
|
20
|
<sql id="Example_Where_Clause" >
|
|
20
|
21
|
<where >
|
|
|
@@ -75,8 +76,8 @@
|
|
75
|
76
|
</where>
|
|
76
|
77
|
</sql>
|
|
77
|
78
|
<sql id="Base_Column_List" >
|
|
78
|
|
- id, keeper_id, dataType, type, occupation, college, department, education, degree,
|
|
79
|
|
- degree_detailed, rank, issue_facility, issue_time
|
|
|
79
|
+ id, keeper_id, dataType, type_s, occupation, college, department, education, degree,
|
|
|
80
|
+ degree_detailed, rank_s, issue_facility, issue_time, updatetime
|
|
80
|
81
|
</sql>
|
|
81
|
82
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducationExample" >
|
|
82
|
83
|
select
|
|
|
@@ -110,15 +111,15 @@
|
|
110
|
111
|
</delete>
|
|
111
|
112
|
<insert id="insert" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducation" >
|
|
112
|
113
|
insert into basic_keeper_education (id, keeper_id, dataType,
|
|
113
|
|
- type, occupation, college,
|
|
|
114
|
+ type_s, occupation, college,
|
|
114
|
115
|
department, education, degree,
|
|
115
|
|
- degree_detailed, rank, issue_facility,
|
|
116
|
|
- issue_time)
|
|
|
116
|
+ degree_detailed, rank_s, issue_facility,
|
|
|
117
|
+ issue_time, updatetime)
|
|
117
|
118
|
values (#{id,jdbcType=INTEGER}, #{keeperId,jdbcType=INTEGER}, #{datatype,jdbcType=INTEGER},
|
|
118
|
|
- #{type,jdbcType=INTEGER}, #{occupation,jdbcType=INTEGER}, #{college,jdbcType=VARCHAR},
|
|
|
119
|
+ #{typeS,jdbcType=INTEGER}, #{occupation,jdbcType=INTEGER}, #{college,jdbcType=VARCHAR},
|
|
119
|
120
|
#{department,jdbcType=VARCHAR}, #{education,jdbcType=INTEGER}, #{degree,jdbcType=INTEGER},
|
|
120
|
|
- #{degreeDetailed,jdbcType=INTEGER}, #{rank,jdbcType=INTEGER}, #{issueFacility,jdbcType=VARCHAR},
|
|
121
|
|
- #{issueTime,jdbcType=TIMESTAMP})
|
|
|
121
|
+ #{degreeDetailed,jdbcType=INTEGER}, #{rankS,jdbcType=INTEGER}, #{issueFacility,jdbcType=VARCHAR},
|
|
|
122
|
+ #{issueTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP})
|
|
122
|
123
|
</insert>
|
|
123
|
124
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducation" >
|
|
124
|
125
|
insert into basic_keeper_education
|
|
|
@@ -132,8 +133,8 @@
|
|
132
|
133
|
<if test="datatype != null" >
|
|
133
|
134
|
dataType,
|
|
134
|
135
|
</if>
|
|
135
|
|
- <if test="type != null" >
|
|
136
|
|
- type,
|
|
|
136
|
+ <if test="typeS != null" >
|
|
|
137
|
+ type_s,
|
|
137
|
138
|
</if>
|
|
138
|
139
|
<if test="occupation != null" >
|
|
139
|
140
|
occupation,
|
|
|
@@ -153,8 +154,8 @@
|
|
153
|
154
|
<if test="degreeDetailed != null" >
|
|
154
|
155
|
degree_detailed,
|
|
155
|
156
|
</if>
|
|
156
|
|
- <if test="rank != null" >
|
|
157
|
|
- rank,
|
|
|
157
|
+ <if test="rankS != null" >
|
|
|
158
|
+ rank_s,
|
|
158
|
159
|
</if>
|
|
159
|
160
|
<if test="issueFacility != null" >
|
|
160
|
161
|
issue_facility,
|
|
|
@@ -162,6 +163,9 @@
|
|
162
|
163
|
<if test="issueTime != null" >
|
|
163
|
164
|
issue_time,
|
|
164
|
165
|
</if>
|
|
|
166
|
+ <if test="updatetime != null" >
|
|
|
167
|
+ updatetime,
|
|
|
168
|
+ </if>
|
|
165
|
169
|
</trim>
|
|
166
|
170
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
167
|
171
|
<if test="id != null" >
|
|
|
@@ -173,8 +177,8 @@
|
|
173
|
177
|
<if test="datatype != null" >
|
|
174
|
178
|
#{datatype,jdbcType=INTEGER},
|
|
175
|
179
|
</if>
|
|
176
|
|
- <if test="type != null" >
|
|
177
|
|
- #{type,jdbcType=INTEGER},
|
|
|
180
|
+ <if test="typeS != null" >
|
|
|
181
|
+ #{typeS,jdbcType=INTEGER},
|
|
178
|
182
|
</if>
|
|
179
|
183
|
<if test="occupation != null" >
|
|
180
|
184
|
#{occupation,jdbcType=INTEGER},
|
|
|
@@ -194,8 +198,8 @@
|
|
194
|
198
|
<if test="degreeDetailed != null" >
|
|
195
|
199
|
#{degreeDetailed,jdbcType=INTEGER},
|
|
196
|
200
|
</if>
|
|
197
|
|
- <if test="rank != null" >
|
|
198
|
|
- #{rank,jdbcType=INTEGER},
|
|
|
201
|
+ <if test="rankS != null" >
|
|
|
202
|
+ #{rankS,jdbcType=INTEGER},
|
|
199
|
203
|
</if>
|
|
200
|
204
|
<if test="issueFacility != null" >
|
|
201
|
205
|
#{issueFacility,jdbcType=VARCHAR},
|
|
|
@@ -203,6 +207,9 @@
|
|
203
|
207
|
<if test="issueTime != null" >
|
|
204
|
208
|
#{issueTime,jdbcType=TIMESTAMP},
|
|
205
|
209
|
</if>
|
|
|
210
|
+ <if test="updatetime != null" >
|
|
|
211
|
+ #{updatetime,jdbcType=TIMESTAMP},
|
|
|
212
|
+ </if>
|
|
206
|
213
|
</trim>
|
|
207
|
214
|
</insert>
|
|
208
|
215
|
<select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducationExample" resultType="java.lang.Integer" >
|
|
|
@@ -223,8 +230,8 @@
|
|
223
|
230
|
<if test="record.datatype != null" >
|
|
224
|
231
|
dataType = #{record.datatype,jdbcType=INTEGER},
|
|
225
|
232
|
</if>
|
|
226
|
|
- <if test="record.type != null" >
|
|
227
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
233
|
+ <if test="record.typeS != null" >
|
|
|
234
|
+ type_s = #{record.typeS,jdbcType=INTEGER},
|
|
228
|
235
|
</if>
|
|
229
|
236
|
<if test="record.occupation != null" >
|
|
230
|
237
|
occupation = #{record.occupation,jdbcType=INTEGER},
|
|
|
@@ -244,8 +251,8 @@
|
|
244
|
251
|
<if test="record.degreeDetailed != null" >
|
|
245
|
252
|
degree_detailed = #{record.degreeDetailed,jdbcType=INTEGER},
|
|
246
|
253
|
</if>
|
|
247
|
|
- <if test="record.rank != null" >
|
|
248
|
|
- rank = #{record.rank,jdbcType=INTEGER},
|
|
|
254
|
+ <if test="record.rankS != null" >
|
|
|
255
|
+ rank_s = #{record.rankS,jdbcType=INTEGER},
|
|
249
|
256
|
</if>
|
|
250
|
257
|
<if test="record.issueFacility != null" >
|
|
251
|
258
|
issue_facility = #{record.issueFacility,jdbcType=VARCHAR},
|
|
|
@@ -253,6 +260,9 @@
|
|
253
|
260
|
<if test="record.issueTime != null" >
|
|
254
|
261
|
issue_time = #{record.issueTime,jdbcType=TIMESTAMP},
|
|
255
|
262
|
</if>
|
|
|
263
|
+ <if test="record.updatetime != null" >
|
|
|
264
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
265
|
+ </if>
|
|
256
|
266
|
</set>
|
|
257
|
267
|
<if test="_parameter != null" >
|
|
258
|
268
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -263,16 +273,17 @@
|
|
263
|
273
|
set id = #{record.id,jdbcType=INTEGER},
|
|
264
|
274
|
keeper_id = #{record.keeperId,jdbcType=INTEGER},
|
|
265
|
275
|
dataType = #{record.datatype,jdbcType=INTEGER},
|
|
266
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
276
|
+ type_s = #{record.typeS,jdbcType=INTEGER},
|
|
267
|
277
|
occupation = #{record.occupation,jdbcType=INTEGER},
|
|
268
|
278
|
college = #{record.college,jdbcType=VARCHAR},
|
|
269
|
279
|
department = #{record.department,jdbcType=VARCHAR},
|
|
270
|
280
|
education = #{record.education,jdbcType=INTEGER},
|
|
271
|
281
|
degree = #{record.degree,jdbcType=INTEGER},
|
|
272
|
282
|
degree_detailed = #{record.degreeDetailed,jdbcType=INTEGER},
|
|
273
|
|
- rank = #{record.rank,jdbcType=INTEGER},
|
|
|
283
|
+ rank_s = #{record.rankS,jdbcType=INTEGER},
|
|
274
|
284
|
issue_facility = #{record.issueFacility,jdbcType=VARCHAR},
|
|
275
|
|
- issue_time = #{record.issueTime,jdbcType=TIMESTAMP}
|
|
|
285
|
+ issue_time = #{record.issueTime,jdbcType=TIMESTAMP},
|
|
|
286
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
|
|
276
|
287
|
<if test="_parameter != null" >
|
|
277
|
288
|
<include refid="Update_By_Example_Where_Clause" />
|
|
278
|
289
|
</if>
|
|
|
@@ -286,8 +297,8 @@
|
|
286
|
297
|
<if test="datatype != null" >
|
|
287
|
298
|
dataType = #{datatype,jdbcType=INTEGER},
|
|
288
|
299
|
</if>
|
|
289
|
|
- <if test="type != null" >
|
|
290
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
300
|
+ <if test="typeS != null" >
|
|
|
301
|
+ type_s = #{typeS,jdbcType=INTEGER},
|
|
291
|
302
|
</if>
|
|
292
|
303
|
<if test="occupation != null" >
|
|
293
|
304
|
occupation = #{occupation,jdbcType=INTEGER},
|
|
|
@@ -307,8 +318,8 @@
|
|
307
|
318
|
<if test="degreeDetailed != null" >
|
|
308
|
319
|
degree_detailed = #{degreeDetailed,jdbcType=INTEGER},
|
|
309
|
320
|
</if>
|
|
310
|
|
- <if test="rank != null" >
|
|
311
|
|
- rank = #{rank,jdbcType=INTEGER},
|
|
|
321
|
+ <if test="rankS != null" >
|
|
|
322
|
+ rank_s = #{rankS,jdbcType=INTEGER},
|
|
312
|
323
|
</if>
|
|
313
|
324
|
<if test="issueFacility != null" >
|
|
314
|
325
|
issue_facility = #{issueFacility,jdbcType=VARCHAR},
|
|
|
@@ -316,6 +327,9 @@
|
|
316
|
327
|
<if test="issueTime != null" >
|
|
317
|
328
|
issue_time = #{issueTime,jdbcType=TIMESTAMP},
|
|
318
|
329
|
</if>
|
|
|
330
|
+ <if test="updatetime != null" >
|
|
|
331
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
332
|
+ </if>
|
|
319
|
333
|
</set>
|
|
320
|
334
|
where id = #{id,jdbcType=INTEGER}
|
|
321
|
335
|
</update>
|
|
|
@@ -323,16 +337,17 @@
|
|
323
|
337
|
update basic_keeper_education
|
|
324
|
338
|
set keeper_id = #{keeperId,jdbcType=INTEGER},
|
|
325
|
339
|
dataType = #{datatype,jdbcType=INTEGER},
|
|
326
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
340
|
+ type_s = #{typeS,jdbcType=INTEGER},
|
|
327
|
341
|
occupation = #{occupation,jdbcType=INTEGER},
|
|
328
|
342
|
college = #{college,jdbcType=VARCHAR},
|
|
329
|
343
|
department = #{department,jdbcType=VARCHAR},
|
|
330
|
344
|
education = #{education,jdbcType=INTEGER},
|
|
331
|
345
|
degree = #{degree,jdbcType=INTEGER},
|
|
332
|
346
|
degree_detailed = #{degreeDetailed,jdbcType=INTEGER},
|
|
333
|
|
- rank = #{rank,jdbcType=INTEGER},
|
|
|
347
|
+ rank_s = #{rankS,jdbcType=INTEGER},
|
|
334
|
348
|
issue_facility = #{issueFacility,jdbcType=VARCHAR},
|
|
335
|
|
- issue_time = #{issueTime,jdbcType=TIMESTAMP}
|
|
|
349
|
+ issue_time = #{issueTime,jdbcType=TIMESTAMP},
|
|
|
350
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
|
336
|
351
|
where id = #{id,jdbcType=INTEGER}
|
|
337
|
352
|
</update>
|
|
338
|
353
|
</mapper>
|