|
|
@@ -26,6 +26,10 @@
|
|
26
|
26
|
<result column="grain_attribute" property="grainAttribute" jdbcType="INTEGER" />
|
|
27
|
27
|
<result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
|
|
28
|
28
|
<result column="receive_time" property="receiveTime" jdbcType="TIMESTAMP" />
|
|
|
29
|
+ <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
|
|
|
30
|
+ <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
|
|
|
31
|
+ <result column="productive_year" property="productiveYear" jdbcType="INTEGER" />
|
|
|
32
|
+ <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
|
|
29
|
33
|
</resultMap>
|
|
30
|
34
|
<sql id="Example_Where_Clause" >
|
|
31
|
35
|
<!--
|
|
|
@@ -103,7 +107,7 @@
|
|
103
|
107
|
-->
|
|
104
|
108
|
id, notice_number, crktype, contract_number, ywtype, house_id, ware_house_id, grain_kind,
|
|
105
|
109
|
grain_grade, count, outgoing_period, forwarding_unit, receive_unit, resion, in_application,
|
|
106
|
|
- org_id, grain_attribute, grain_detail_kind, receive_time
|
|
|
110
|
+ org_id, grain_attribute, grain_detail_kind, receive_time,input_time,grain_annual,productive_year,grain_producing_area
|
|
107
|
111
|
</sql>
|
|
108
|
112
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
|
|
109
|
113
|
<!--
|
|
|
@@ -167,14 +171,15 @@
|
|
167
|
171
|
count, outgoing_period, forwarding_unit,
|
|
168
|
172
|
receive_unit, resion, in_application,
|
|
169
|
173
|
org_id, grain_attribute, grain_detail_kind,
|
|
170
|
|
- receive_time)
|
|
|
174
|
+ receive_time,input_time,grain_annual,productive_year,grain_producing_area)
|
|
171
|
175
|
values (#{id,jdbcType=INTEGER}, #{noticeNumber,jdbcType=VARCHAR}, #{crktype,jdbcType=VARCHAR},
|
|
172
|
176
|
#{contractNumber,jdbcType=VARCHAR}, #{ywtype,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
|
|
173
|
177
|
#{wareHouseId,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER},
|
|
174
|
178
|
#{count,jdbcType=VARCHAR}, #{outgoingPeriod,jdbcType=VARCHAR}, #{forwardingUnit,jdbcType=VARCHAR},
|
|
175
|
179
|
#{receiveUnit,jdbcType=VARCHAR}, #{resion,jdbcType=VARCHAR}, #{inApplication,jdbcType=INTEGER},
|
|
176
|
180
|
#{orgId,jdbcType=INTEGER}, #{grainAttribute,jdbcType=INTEGER}, #{grainDetailKind,jdbcType=INTEGER},
|
|
177
|
|
- #{receiveTime,jdbcType=TIMESTAMP})
|
|
|
181
|
+ #{receiveTime,jdbcType=TIMESTAMP},#{inputTime,jdbcType=TIMESTAMP},#{grainAnnual,jdbcType=INTEGER},
|
|
|
182
|
+ #{productiveYear,jdbcType=INTEGER},#{grainProducingArea,jdbcType=INTEGER})
|
|
178
|
183
|
</insert>
|
|
179
|
184
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
|
|
180
|
185
|
<!--
|
|
|
@@ -241,6 +246,18 @@
|
|
241
|
246
|
<if test="receiveTime != null" >
|
|
242
|
247
|
receive_time,
|
|
243
|
248
|
</if>
|
|
|
249
|
+ <if test="inputTime != null" >
|
|
|
250
|
+ input_time,
|
|
|
251
|
+ </if>
|
|
|
252
|
+ <if test="grainAnnual != null" >
|
|
|
253
|
+ grain_annual,
|
|
|
254
|
+ </if>
|
|
|
255
|
+ <if test="productiveYear != null" >
|
|
|
256
|
+ productive_year,
|
|
|
257
|
+ </if>
|
|
|
258
|
+ <if test="grainProducingArea != null" >
|
|
|
259
|
+ grain_producing_area,
|
|
|
260
|
+ </if>
|
|
244
|
261
|
</trim>
|
|
245
|
262
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
246
|
263
|
<if test="id != null" >
|
|
|
@@ -300,6 +317,18 @@
|
|
300
|
317
|
<if test="receiveTime != null" >
|
|
301
|
318
|
#{receiveTime,jdbcType=TIMESTAMP},
|
|
302
|
319
|
</if>
|
|
|
320
|
+ <if test="inputTime != null" >
|
|
|
321
|
+ #{inputTime,jdbcType=TIMESTAMP},
|
|
|
322
|
+ </if>
|
|
|
323
|
+ <if test="grainAnnual != null" >
|
|
|
324
|
+ #{grainAnnual,jdbcType=INTEGER},
|
|
|
325
|
+ </if>
|
|
|
326
|
+ <if test="productiveYear != null" >
|
|
|
327
|
+ #{productiveYear,jdbcType=INTEGER},
|
|
|
328
|
+ </if>
|
|
|
329
|
+ <if test="grainProducingArea != null" >
|
|
|
330
|
+ #{grainProducingArea,jdbcType=INTEGER},
|
|
|
331
|
+ </if>
|
|
303
|
332
|
</trim>
|
|
304
|
333
|
</insert>
|
|
305
|
334
|
<select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
|
|
|
@@ -378,6 +407,18 @@
|
|
378
|
407
|
<if test="record.receiveTime != null" >
|
|
379
|
408
|
receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
|
|
380
|
409
|
</if>
|
|
|
410
|
+ <if test="record.inputTime != null" >
|
|
|
411
|
+ input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
|
412
|
+ </if>
|
|
|
413
|
+ <if test="record.grainAnnual != null" >
|
|
|
414
|
+ grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
|
415
|
+ </if>
|
|
|
416
|
+ <if test="record.productiveYear!= null" >
|
|
|
417
|
+ productive_year = #{record.productiveYear,jdbcType=INTEGER},
|
|
|
418
|
+ </if>
|
|
|
419
|
+ <if test="record.grainProducingArea != null" >
|
|
|
420
|
+ grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
|
421
|
+ </if>
|
|
381
|
422
|
</set>
|
|
382
|
423
|
<if test="_parameter != null" >
|
|
383
|
424
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -408,7 +449,12 @@
|
|
408
|
449
|
org_id = #{record.orgId,jdbcType=INTEGER},
|
|
409
|
450
|
grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
|
|
410
|
451
|
grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
|
|
411
|
|
- receive_time = #{record.receiveTime,jdbcType=TIMESTAMP}
|
|
|
452
|
+ receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
|
|
|
453
|
+ input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
|
454
|
+ grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
|
455
|
+ productive_year = #{record.productiveYear,jdbcType=INTEGER},
|
|
|
456
|
+ grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER}
|
|
|
457
|
+
|
|
412
|
458
|
<if test="_parameter != null" >
|
|
413
|
459
|
<include refid="Update_By_Example_Where_Clause" />
|
|
414
|
460
|
</if>
|
|
|
@@ -475,6 +521,18 @@
|
|
475
|
521
|
<if test="receiveTime != null" >
|
|
476
|
522
|
receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
477
|
523
|
</if>
|
|
|
524
|
+ <if test="receiveTime != null" >
|
|
|
525
|
+ input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
|
526
|
+ </if>
|
|
|
527
|
+ <if test="grainAnnual != null" >
|
|
|
528
|
+ grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
|
529
|
+ </if>
|
|
|
530
|
+ <if test="productiveYear != null" >
|
|
|
531
|
+ productive_year = #{productiveYear,jdbcType=INTEGER},
|
|
|
532
|
+ </if>
|
|
|
533
|
+ <if test="grainProducingArea != null" >
|
|
|
534
|
+ grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
|
535
|
+ </if>
|
|
478
|
536
|
</set>
|
|
479
|
537
|
where id = #{id,jdbcType=INTEGER}
|
|
480
|
538
|
</update>
|
|
|
@@ -502,7 +560,11 @@
|
|
502
|
560
|
org_id = #{orgId,jdbcType=INTEGER},
|
|
503
|
561
|
grain_attribute = #{grainAttribute,jdbcType=INTEGER},
|
|
504
|
562
|
grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
|
|
505
|
|
- receive_time = #{receiveTime,jdbcType=TIMESTAMP}
|
|
|
563
|
+ receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
564
|
+ input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
|
565
|
+ grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
|
566
|
+ productive_year = #{productiveYear,jdbcType=INTEGER},
|
|
|
567
|
+ grain_producing_area = #{grainProducingArea,jdbcType=INTEGER}
|
|
506
|
568
|
where id = #{id,jdbcType=INTEGER}
|
|
507
|
569
|
</update>
|
|
508
|
570
|
</mapper>
|