|
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
2
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
3
|
+<mapper namespace="com.chinaitop.depot.storage.mapper.GrainSituationCardMapper" >
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.GrainSituationCard" >
|
|
|
5
|
+ <id column="id" property="id" jdbcType="INTEGER" />
|
|
|
6
|
+ <result column="createname" property="createname" jdbcType="VARCHAR" />
|
|
|
7
|
+ <result column="createdate" property="createdate" jdbcType="TIMESTAMP" />
|
|
|
8
|
+ <result column="updatename" property="updatename" jdbcType="VARCHAR" />
|
|
|
9
|
+ <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
|
|
|
10
|
+ <result column="warehouse_sealing_record_id" property="warehouseSealingRecordId" jdbcType="INTEGER" />
|
|
|
11
|
+ <result column="fill_org_id" property="fillOrgId" jdbcType="INTEGER" />
|
|
|
12
|
+ <result column="keep_org_id" property="keepOrgId" jdbcType="INTEGER" />
|
|
|
13
|
+ <result column="basic_storehouse_id" property="basicStorehouseId" jdbcType="INTEGER" />
|
|
|
14
|
+ <result column="basic_unit_aisle_id" property="basicUnitAisleId" jdbcType="INTEGER" />
|
|
|
15
|
+ <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
|
|
|
16
|
+ <result column="storehouse_type" property="storehouseType" jdbcType="INTEGER" />
|
|
|
17
|
+ <result column="design_capacity" property="designCapacity" jdbcType="DECIMAL" />
|
|
|
18
|
+ <result column="grain_variety_id" property="grainVarietyId" jdbcType="INTEGER" />
|
|
|
19
|
+ <result column="grain_nature_id" property="grainNatureId" jdbcType="INTEGER" />
|
|
|
20
|
+ <result column="lssl" property="lssl" jdbcType="DECIMAL" />
|
|
|
21
|
+ <result column="grain_area_id" property="grainAreaId" jdbcType="INTEGER" />
|
|
|
22
|
+ <result column="shnd" property="shnd" jdbcType="DATE" />
|
|
|
23
|
+ <result column="rcsj" property="rcsj" jdbcType="DATE" />
|
|
|
24
|
+ <result column="form_warehouse_time" property="formWarehouseTime" jdbcType="TIMESTAMP" />
|
|
|
25
|
+ <result column="grain_grade_id" property="grainGradeId" jdbcType="INTEGER" />
|
|
|
26
|
+ <result column="temperature_measure_type" property="temperatureMeasureType" jdbcType="TINYINT" />
|
|
|
27
|
+ <result column="drafttype" property="drafttype" jdbcType="INTEGER" />
|
|
|
28
|
+ <result column="glfs" property="glfs" jdbcType="VARCHAR" />
|
|
|
29
|
+ <result column="storage_org_id" property="storageOrgId" jdbcType="INTEGER" />
|
|
|
30
|
+ <result column="keeping_way" property="keepingWay" jdbcType="INTEGER" />
|
|
|
31
|
+ <result column="volume" property="volume" jdbcType="DECIMAL" />
|
|
|
32
|
+ <result column="length" property="length" jdbcType="DECIMAL" />
|
|
|
33
|
+ <result column="width" property="width" jdbcType="DECIMAL" />
|
|
|
34
|
+ <result column="trapezoid_upper_length" property="trapezoidUpperLength" jdbcType="DECIMAL" />
|
|
|
35
|
+ <result column="trapezoid_lower_length" property="trapezoidLowerLength" jdbcType="DECIMAL" />
|
|
|
36
|
+ <result column="trapezoid_upper_width" property="trapezoidUpperWidth" jdbcType="DECIMAL" />
|
|
|
37
|
+ <result column="trapezoid_lower_width" property="trapezoidLowerWidth" jdbcType="DECIMAL" />
|
|
|
38
|
+ <result column="flat_storage_height" property="flatStorageHeight" jdbcType="DECIMAL" />
|
|
|
39
|
+ <result column="trapezoid_height" property="trapezoidHeight" jdbcType="DECIMAL" />
|
|
|
40
|
+ <result column="silo_inner_diameter" property="siloInnerDiameter" jdbcType="DECIMAL" />
|
|
|
41
|
+ <result column="silo_grain_height" property="siloGrainHeight" jdbcType="DECIMAL" />
|
|
|
42
|
+ <result column="packaged_count" property="packagedCount" jdbcType="INTEGER" />
|
|
|
43
|
+ <result column="average_weight" property="averageWeight" jdbcType="DECIMAL" />
|
|
|
44
|
+ <result column="check_record_ids" property="checkRecordIds" jdbcType="VARCHAR" />
|
|
|
45
|
+ </resultMap>
|
|
|
46
|
+ <sql id="Example_Where_Clause" >
|
|
|
47
|
+ <where >
|
|
|
48
|
+ <foreach collection="oredCriteria" item="criteria" separator="or" >
|
|
|
49
|
+ <if test="criteria.valid" >
|
|
|
50
|
+ <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
|
51
|
+ <foreach collection="criteria.criteria" item="criterion" >
|
|
|
52
|
+ <choose >
|
|
|
53
|
+ <when test="criterion.noValue" >
|
|
|
54
|
+ and ${criterion.condition}
|
|
|
55
|
+ </when>
|
|
|
56
|
+ <when test="criterion.singleValue" >
|
|
|
57
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
58
|
+ </when>
|
|
|
59
|
+ <when test="criterion.betweenValue" >
|
|
|
60
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
61
|
+ </when>
|
|
|
62
|
+ <when test="criterion.listValue" >
|
|
|
63
|
+ and ${criterion.condition}
|
|
|
64
|
+ <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
|
65
|
+ #{listItem}
|
|
|
66
|
+ </foreach>
|
|
|
67
|
+ </when>
|
|
|
68
|
+ </choose>
|
|
|
69
|
+ </foreach>
|
|
|
70
|
+ </trim>
|
|
|
71
|
+ </if>
|
|
|
72
|
+ </foreach>
|
|
|
73
|
+ </where>
|
|
|
74
|
+ </sql>
|
|
|
75
|
+ <sql id="Update_By_Example_Where_Clause" >
|
|
|
76
|
+ <where >
|
|
|
77
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
|
|
78
|
+ <if test="criteria.valid" >
|
|
|
79
|
+ <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
|
80
|
+ <foreach collection="criteria.criteria" item="criterion" >
|
|
|
81
|
+ <choose >
|
|
|
82
|
+ <when test="criterion.noValue" >
|
|
|
83
|
+ and ${criterion.condition}
|
|
|
84
|
+ </when>
|
|
|
85
|
+ <when test="criterion.singleValue" >
|
|
|
86
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
87
|
+ </when>
|
|
|
88
|
+ <when test="criterion.betweenValue" >
|
|
|
89
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
90
|
+ </when>
|
|
|
91
|
+ <when test="criterion.listValue" >
|
|
|
92
|
+ and ${criterion.condition}
|
|
|
93
|
+ <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
|
94
|
+ #{listItem}
|
|
|
95
|
+ </foreach>
|
|
|
96
|
+ </when>
|
|
|
97
|
+ </choose>
|
|
|
98
|
+ </foreach>
|
|
|
99
|
+ </trim>
|
|
|
100
|
+ </if>
|
|
|
101
|
+ </foreach>
|
|
|
102
|
+ </where>
|
|
|
103
|
+ </sql>
|
|
|
104
|
+ <sql id="Base_Column_List" >
|
|
|
105
|
+ id, createname, createdate, updatename, updatedate, warehouse_sealing_record_id,
|
|
|
106
|
+ fill_org_id, keep_org_id, basic_storehouse_id, basic_unit_aisle_id, warehouse_id,
|
|
|
107
|
+ storehouse_type, design_capacity, grain_variety_id, grain_nature_id, lssl, grain_area_id,
|
|
|
108
|
+ shnd, rcsj, form_warehouse_time, grain_grade_id, temperature_measure_type, drafttype,
|
|
|
109
|
+ glfs, storage_org_id, keeping_way, volume, length, width, trapezoid_upper_length,
|
|
|
110
|
+ trapezoid_lower_length, trapezoid_upper_width, trapezoid_lower_width, flat_storage_height,
|
|
|
111
|
+ trapezoid_height, silo_inner_diameter, silo_grain_height, packaged_count, average_weight,
|
|
|
112
|
+ check_record_ids
|
|
|
113
|
+ </sql>
|
|
|
114
|
+ <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.GrainSituationCardExample" >
|
|
|
115
|
+ select
|
|
|
116
|
+ <if test="distinct" >
|
|
|
117
|
+ distinct
|
|
|
118
|
+ </if>
|
|
|
119
|
+ <include refid="Base_Column_List" />
|
|
|
120
|
+ from grain_situation_card
|
|
|
121
|
+ <if test="_parameter != null" >
|
|
|
122
|
+ <include refid="Example_Where_Clause" />
|
|
|
123
|
+ </if>
|
|
|
124
|
+ <if test="orderByClause != null" >
|
|
|
125
|
+ order by ${orderByClause}
|
|
|
126
|
+ </if>
|
|
|
127
|
+ </select>
|
|
|
128
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
129
|
+ select
|
|
|
130
|
+ <include refid="Base_Column_List" />
|
|
|
131
|
+ from grain_situation_card
|
|
|
132
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
133
|
+ </select>
|
|
|
134
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
135
|
+ delete from grain_situation_card
|
|
|
136
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
137
|
+ </delete>
|
|
|
138
|
+ <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.GrainSituationCardExample" >
|
|
|
139
|
+ delete from grain_situation_card
|
|
|
140
|
+ <if test="_parameter != null" >
|
|
|
141
|
+ <include refid="Example_Where_Clause" />
|
|
|
142
|
+ </if>
|
|
|
143
|
+ </delete>
|
|
|
144
|
+ <insert id="insert" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
|
|
|
145
|
+ insert into grain_situation_card (id, createname, createdate,
|
|
|
146
|
+ updatename, updatedate, warehouse_sealing_record_id,
|
|
|
147
|
+ fill_org_id, keep_org_id, basic_storehouse_id,
|
|
|
148
|
+ basic_unit_aisle_id, warehouse_id, storehouse_type,
|
|
|
149
|
+ design_capacity, grain_variety_id, grain_nature_id,
|
|
|
150
|
+ lssl, grain_area_id, shnd,
|
|
|
151
|
+ rcsj, form_warehouse_time, grain_grade_id,
|
|
|
152
|
+ temperature_measure_type, drafttype, glfs,
|
|
|
153
|
+ storage_org_id, keeping_way, volume,
|
|
|
154
|
+ length, width, trapezoid_upper_length,
|
|
|
155
|
+ trapezoid_lower_length, trapezoid_upper_width,
|
|
|
156
|
+ trapezoid_lower_width, flat_storage_height,
|
|
|
157
|
+ trapezoid_height, silo_inner_diameter, silo_grain_height,
|
|
|
158
|
+ packaged_count, average_weight, check_record_ids
|
|
|
159
|
+ )
|
|
|
160
|
+ values (#{id,jdbcType=INTEGER}, #{createname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP},
|
|
|
161
|
+ #{updatename,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{warehouseSealingRecordId,jdbcType=INTEGER},
|
|
|
162
|
+ #{fillOrgId,jdbcType=INTEGER}, #{keepOrgId,jdbcType=INTEGER}, #{basicStorehouseId,jdbcType=INTEGER},
|
|
|
163
|
+ #{basicUnitAisleId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, #{storehouseType,jdbcType=INTEGER},
|
|
|
164
|
+ #{designCapacity,jdbcType=DECIMAL}, #{grainVarietyId,jdbcType=INTEGER}, #{grainNatureId,jdbcType=INTEGER},
|
|
|
165
|
+ #{lssl,jdbcType=DECIMAL}, #{grainAreaId,jdbcType=INTEGER}, #{shnd,jdbcType=DATE},
|
|
|
166
|
+ #{rcsj,jdbcType=DATE}, #{formWarehouseTime,jdbcType=TIMESTAMP}, #{grainGradeId,jdbcType=INTEGER},
|
|
|
167
|
+ #{temperatureMeasureType,jdbcType=TINYINT}, #{drafttype,jdbcType=INTEGER}, #{glfs,jdbcType=VARCHAR},
|
|
|
168
|
+ #{storageOrgId,jdbcType=INTEGER}, #{keepingWay,jdbcType=INTEGER}, #{volume,jdbcType=DECIMAL},
|
|
|
169
|
+ #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{trapezoidUpperLength,jdbcType=DECIMAL},
|
|
|
170
|
+ #{trapezoidLowerLength,jdbcType=DECIMAL}, #{trapezoidUpperWidth,jdbcType=DECIMAL},
|
|
|
171
|
+ #{trapezoidLowerWidth,jdbcType=DECIMAL}, #{flatStorageHeight,jdbcType=DECIMAL},
|
|
|
172
|
+ #{trapezoidHeight,jdbcType=DECIMAL}, #{siloInnerDiameter,jdbcType=DECIMAL}, #{siloGrainHeight,jdbcType=DECIMAL},
|
|
|
173
|
+ #{packagedCount,jdbcType=INTEGER}, #{averageWeight,jdbcType=DECIMAL}, #{checkRecordIds,jdbcType=VARCHAR}
|
|
|
174
|
+ )
|
|
|
175
|
+ </insert>
|
|
|
176
|
+ <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
|
|
|
177
|
+ insert into grain_situation_card
|
|
|
178
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
179
|
+ <if test="id != null" >
|
|
|
180
|
+ id,
|
|
|
181
|
+ </if>
|
|
|
182
|
+ <if test="createname != null" >
|
|
|
183
|
+ createname,
|
|
|
184
|
+ </if>
|
|
|
185
|
+ <if test="createdate != null" >
|
|
|
186
|
+ createdate,
|
|
|
187
|
+ </if>
|
|
|
188
|
+ <if test="updatename != null" >
|
|
|
189
|
+ updatename,
|
|
|
190
|
+ </if>
|
|
|
191
|
+ <if test="updatedate != null" >
|
|
|
192
|
+ updatedate,
|
|
|
193
|
+ </if>
|
|
|
194
|
+ <if test="warehouseSealingRecordId != null" >
|
|
|
195
|
+ warehouse_sealing_record_id,
|
|
|
196
|
+ </if>
|
|
|
197
|
+ <if test="fillOrgId != null" >
|
|
|
198
|
+ fill_org_id,
|
|
|
199
|
+ </if>
|
|
|
200
|
+ <if test="keepOrgId != null" >
|
|
|
201
|
+ keep_org_id,
|
|
|
202
|
+ </if>
|
|
|
203
|
+ <if test="basicStorehouseId != null" >
|
|
|
204
|
+ basic_storehouse_id,
|
|
|
205
|
+ </if>
|
|
|
206
|
+ <if test="basicUnitAisleId != null" >
|
|
|
207
|
+ basic_unit_aisle_id,
|
|
|
208
|
+ </if>
|
|
|
209
|
+ <if test="warehouseId != null" >
|
|
|
210
|
+ warehouse_id,
|
|
|
211
|
+ </if>
|
|
|
212
|
+ <if test="storehouseType != null" >
|
|
|
213
|
+ storehouse_type,
|
|
|
214
|
+ </if>
|
|
|
215
|
+ <if test="designCapacity != null" >
|
|
|
216
|
+ design_capacity,
|
|
|
217
|
+ </if>
|
|
|
218
|
+ <if test="grainVarietyId != null" >
|
|
|
219
|
+ grain_variety_id,
|
|
|
220
|
+ </if>
|
|
|
221
|
+ <if test="grainNatureId != null" >
|
|
|
222
|
+ grain_nature_id,
|
|
|
223
|
+ </if>
|
|
|
224
|
+ <if test="lssl != null" >
|
|
|
225
|
+ lssl,
|
|
|
226
|
+ </if>
|
|
|
227
|
+ <if test="grainAreaId != null" >
|
|
|
228
|
+ grain_area_id,
|
|
|
229
|
+ </if>
|
|
|
230
|
+ <if test="shnd != null" >
|
|
|
231
|
+ shnd,
|
|
|
232
|
+ </if>
|
|
|
233
|
+ <if test="rcsj != null" >
|
|
|
234
|
+ rcsj,
|
|
|
235
|
+ </if>
|
|
|
236
|
+ <if test="formWarehouseTime != null" >
|
|
|
237
|
+ form_warehouse_time,
|
|
|
238
|
+ </if>
|
|
|
239
|
+ <if test="grainGradeId != null" >
|
|
|
240
|
+ grain_grade_id,
|
|
|
241
|
+ </if>
|
|
|
242
|
+ <if test="temperatureMeasureType != null" >
|
|
|
243
|
+ temperature_measure_type,
|
|
|
244
|
+ </if>
|
|
|
245
|
+ <if test="drafttype != null" >
|
|
|
246
|
+ drafttype,
|
|
|
247
|
+ </if>
|
|
|
248
|
+ <if test="glfs != null" >
|
|
|
249
|
+ glfs,
|
|
|
250
|
+ </if>
|
|
|
251
|
+ <if test="storageOrgId != null" >
|
|
|
252
|
+ storage_org_id,
|
|
|
253
|
+ </if>
|
|
|
254
|
+ <if test="keepingWay != null" >
|
|
|
255
|
+ keeping_way,
|
|
|
256
|
+ </if>
|
|
|
257
|
+ <if test="volume != null" >
|
|
|
258
|
+ volume,
|
|
|
259
|
+ </if>
|
|
|
260
|
+ <if test="length != null" >
|
|
|
261
|
+ length,
|
|
|
262
|
+ </if>
|
|
|
263
|
+ <if test="width != null" >
|
|
|
264
|
+ width,
|
|
|
265
|
+ </if>
|
|
|
266
|
+ <if test="trapezoidUpperLength != null" >
|
|
|
267
|
+ trapezoid_upper_length,
|
|
|
268
|
+ </if>
|
|
|
269
|
+ <if test="trapezoidLowerLength != null" >
|
|
|
270
|
+ trapezoid_lower_length,
|
|
|
271
|
+ </if>
|
|
|
272
|
+ <if test="trapezoidUpperWidth != null" >
|
|
|
273
|
+ trapezoid_upper_width,
|
|
|
274
|
+ </if>
|
|
|
275
|
+ <if test="trapezoidLowerWidth != null" >
|
|
|
276
|
+ trapezoid_lower_width,
|
|
|
277
|
+ </if>
|
|
|
278
|
+ <if test="flatStorageHeight != null" >
|
|
|
279
|
+ flat_storage_height,
|
|
|
280
|
+ </if>
|
|
|
281
|
+ <if test="trapezoidHeight != null" >
|
|
|
282
|
+ trapezoid_height,
|
|
|
283
|
+ </if>
|
|
|
284
|
+ <if test="siloInnerDiameter != null" >
|
|
|
285
|
+ silo_inner_diameter,
|
|
|
286
|
+ </if>
|
|
|
287
|
+ <if test="siloGrainHeight != null" >
|
|
|
288
|
+ silo_grain_height,
|
|
|
289
|
+ </if>
|
|
|
290
|
+ <if test="packagedCount != null" >
|
|
|
291
|
+ packaged_count,
|
|
|
292
|
+ </if>
|
|
|
293
|
+ <if test="averageWeight != null" >
|
|
|
294
|
+ average_weight,
|
|
|
295
|
+ </if>
|
|
|
296
|
+ <if test="checkRecordIds != null" >
|
|
|
297
|
+ check_record_ids,
|
|
|
298
|
+ </if>
|
|
|
299
|
+ </trim>
|
|
|
300
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
301
|
+ <if test="id != null" >
|
|
|
302
|
+ #{id,jdbcType=INTEGER},
|
|
|
303
|
+ </if>
|
|
|
304
|
+ <if test="createname != null" >
|
|
|
305
|
+ #{createname,jdbcType=VARCHAR},
|
|
|
306
|
+ </if>
|
|
|
307
|
+ <if test="createdate != null" >
|
|
|
308
|
+ #{createdate,jdbcType=TIMESTAMP},
|
|
|
309
|
+ </if>
|
|
|
310
|
+ <if test="updatename != null" >
|
|
|
311
|
+ #{updatename,jdbcType=VARCHAR},
|
|
|
312
|
+ </if>
|
|
|
313
|
+ <if test="updatedate != null" >
|
|
|
314
|
+ #{updatedate,jdbcType=TIMESTAMP},
|
|
|
315
|
+ </if>
|
|
|
316
|
+ <if test="warehouseSealingRecordId != null" >
|
|
|
317
|
+ #{warehouseSealingRecordId,jdbcType=INTEGER},
|
|
|
318
|
+ </if>
|
|
|
319
|
+ <if test="fillOrgId != null" >
|
|
|
320
|
+ #{fillOrgId,jdbcType=INTEGER},
|
|
|
321
|
+ </if>
|
|
|
322
|
+ <if test="keepOrgId != null" >
|
|
|
323
|
+ #{keepOrgId,jdbcType=INTEGER},
|
|
|
324
|
+ </if>
|
|
|
325
|
+ <if test="basicStorehouseId != null" >
|
|
|
326
|
+ #{basicStorehouseId,jdbcType=INTEGER},
|
|
|
327
|
+ </if>
|
|
|
328
|
+ <if test="basicUnitAisleId != null" >
|
|
|
329
|
+ #{basicUnitAisleId,jdbcType=INTEGER},
|
|
|
330
|
+ </if>
|
|
|
331
|
+ <if test="warehouseId != null" >
|
|
|
332
|
+ #{warehouseId,jdbcType=INTEGER},
|
|
|
333
|
+ </if>
|
|
|
334
|
+ <if test="storehouseType != null" >
|
|
|
335
|
+ #{storehouseType,jdbcType=INTEGER},
|
|
|
336
|
+ </if>
|
|
|
337
|
+ <if test="designCapacity != null" >
|
|
|
338
|
+ #{designCapacity,jdbcType=DECIMAL},
|
|
|
339
|
+ </if>
|
|
|
340
|
+ <if test="grainVarietyId != null" >
|
|
|
341
|
+ #{grainVarietyId,jdbcType=INTEGER},
|
|
|
342
|
+ </if>
|
|
|
343
|
+ <if test="grainNatureId != null" >
|
|
|
344
|
+ #{grainNatureId,jdbcType=INTEGER},
|
|
|
345
|
+ </if>
|
|
|
346
|
+ <if test="lssl != null" >
|
|
|
347
|
+ #{lssl,jdbcType=DECIMAL},
|
|
|
348
|
+ </if>
|
|
|
349
|
+ <if test="grainAreaId != null" >
|
|
|
350
|
+ #{grainAreaId,jdbcType=INTEGER},
|
|
|
351
|
+ </if>
|
|
|
352
|
+ <if test="shnd != null" >
|
|
|
353
|
+ #{shnd,jdbcType=DATE},
|
|
|
354
|
+ </if>
|
|
|
355
|
+ <if test="rcsj != null" >
|
|
|
356
|
+ #{rcsj,jdbcType=DATE},
|
|
|
357
|
+ </if>
|
|
|
358
|
+ <if test="formWarehouseTime != null" >
|
|
|
359
|
+ #{formWarehouseTime,jdbcType=TIMESTAMP},
|
|
|
360
|
+ </if>
|
|
|
361
|
+ <if test="grainGradeId != null" >
|
|
|
362
|
+ #{grainGradeId,jdbcType=INTEGER},
|
|
|
363
|
+ </if>
|
|
|
364
|
+ <if test="temperatureMeasureType != null" >
|
|
|
365
|
+ #{temperatureMeasureType,jdbcType=TINYINT},
|
|
|
366
|
+ </if>
|
|
|
367
|
+ <if test="drafttype != null" >
|
|
|
368
|
+ #{drafttype,jdbcType=INTEGER},
|
|
|
369
|
+ </if>
|
|
|
370
|
+ <if test="glfs != null" >
|
|
|
371
|
+ #{glfs,jdbcType=VARCHAR},
|
|
|
372
|
+ </if>
|
|
|
373
|
+ <if test="storageOrgId != null" >
|
|
|
374
|
+ #{storageOrgId,jdbcType=INTEGER},
|
|
|
375
|
+ </if>
|
|
|
376
|
+ <if test="keepingWay != null" >
|
|
|
377
|
+ #{keepingWay,jdbcType=INTEGER},
|
|
|
378
|
+ </if>
|
|
|
379
|
+ <if test="volume != null" >
|
|
|
380
|
+ #{volume,jdbcType=DECIMAL},
|
|
|
381
|
+ </if>
|
|
|
382
|
+ <if test="length != null" >
|
|
|
383
|
+ #{length,jdbcType=DECIMAL},
|
|
|
384
|
+ </if>
|
|
|
385
|
+ <if test="width != null" >
|
|
|
386
|
+ #{width,jdbcType=DECIMAL},
|
|
|
387
|
+ </if>
|
|
|
388
|
+ <if test="trapezoidUpperLength != null" >
|
|
|
389
|
+ #{trapezoidUpperLength,jdbcType=DECIMAL},
|
|
|
390
|
+ </if>
|
|
|
391
|
+ <if test="trapezoidLowerLength != null" >
|
|
|
392
|
+ #{trapezoidLowerLength,jdbcType=DECIMAL},
|
|
|
393
|
+ </if>
|
|
|
394
|
+ <if test="trapezoidUpperWidth != null" >
|
|
|
395
|
+ #{trapezoidUpperWidth,jdbcType=DECIMAL},
|
|
|
396
|
+ </if>
|
|
|
397
|
+ <if test="trapezoidLowerWidth != null" >
|
|
|
398
|
+ #{trapezoidLowerWidth,jdbcType=DECIMAL},
|
|
|
399
|
+ </if>
|
|
|
400
|
+ <if test="flatStorageHeight != null" >
|
|
|
401
|
+ #{flatStorageHeight,jdbcType=DECIMAL},
|
|
|
402
|
+ </if>
|
|
|
403
|
+ <if test="trapezoidHeight != null" >
|
|
|
404
|
+ #{trapezoidHeight,jdbcType=DECIMAL},
|
|
|
405
|
+ </if>
|
|
|
406
|
+ <if test="siloInnerDiameter != null" >
|
|
|
407
|
+ #{siloInnerDiameter,jdbcType=DECIMAL},
|
|
|
408
|
+ </if>
|
|
|
409
|
+ <if test="siloGrainHeight != null" >
|
|
|
410
|
+ #{siloGrainHeight,jdbcType=DECIMAL},
|
|
|
411
|
+ </if>
|
|
|
412
|
+ <if test="packagedCount != null" >
|
|
|
413
|
+ #{packagedCount,jdbcType=INTEGER},
|
|
|
414
|
+ </if>
|
|
|
415
|
+ <if test="averageWeight != null" >
|
|
|
416
|
+ #{averageWeight,jdbcType=DECIMAL},
|
|
|
417
|
+ </if>
|
|
|
418
|
+ <if test="checkRecordIds != null" >
|
|
|
419
|
+ #{checkRecordIds,jdbcType=VARCHAR},
|
|
|
420
|
+ </if>
|
|
|
421
|
+ </trim>
|
|
|
422
|
+ </insert>
|
|
|
423
|
+ <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.GrainSituationCardExample" resultType="java.lang.Integer" >
|
|
|
424
|
+ select count(*) from grain_situation_card
|
|
|
425
|
+ <if test="_parameter != null" >
|
|
|
426
|
+ <include refid="Example_Where_Clause" />
|
|
|
427
|
+ </if>
|
|
|
428
|
+ </select>
|
|
|
429
|
+ <update id="updateByExampleSelective" parameterType="map" >
|
|
|
430
|
+ update grain_situation_card
|
|
|
431
|
+ <set >
|
|
|
432
|
+ <if test="record.id != null" >
|
|
|
433
|
+ id = #{record.id,jdbcType=INTEGER},
|
|
|
434
|
+ </if>
|
|
|
435
|
+ <if test="record.createname != null" >
|
|
|
436
|
+ createname = #{record.createname,jdbcType=VARCHAR},
|
|
|
437
|
+ </if>
|
|
|
438
|
+ <if test="record.createdate != null" >
|
|
|
439
|
+ createdate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
|
440
|
+ </if>
|
|
|
441
|
+ <if test="record.updatename != null" >
|
|
|
442
|
+ updatename = #{record.updatename,jdbcType=VARCHAR},
|
|
|
443
|
+ </if>
|
|
|
444
|
+ <if test="record.updatedate != null" >
|
|
|
445
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
446
|
+ </if>
|
|
|
447
|
+ <if test="record.warehouseSealingRecordId != null" >
|
|
|
448
|
+ warehouse_sealing_record_id = #{record.warehouseSealingRecordId,jdbcType=INTEGER},
|
|
|
449
|
+ </if>
|
|
|
450
|
+ <if test="record.fillOrgId != null" >
|
|
|
451
|
+ fill_org_id = #{record.fillOrgId,jdbcType=INTEGER},
|
|
|
452
|
+ </if>
|
|
|
453
|
+ <if test="record.keepOrgId != null" >
|
|
|
454
|
+ keep_org_id = #{record.keepOrgId,jdbcType=INTEGER},
|
|
|
455
|
+ </if>
|
|
|
456
|
+ <if test="record.basicStorehouseId != null" >
|
|
|
457
|
+ basic_storehouse_id = #{record.basicStorehouseId,jdbcType=INTEGER},
|
|
|
458
|
+ </if>
|
|
|
459
|
+ <if test="record.basicUnitAisleId != null" >
|
|
|
460
|
+ basic_unit_aisle_id = #{record.basicUnitAisleId,jdbcType=INTEGER},
|
|
|
461
|
+ </if>
|
|
|
462
|
+ <if test="record.warehouseId != null" >
|
|
|
463
|
+ warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
|
464
|
+ </if>
|
|
|
465
|
+ <if test="record.storehouseType != null" >
|
|
|
466
|
+ storehouse_type = #{record.storehouseType,jdbcType=INTEGER},
|
|
|
467
|
+ </if>
|
|
|
468
|
+ <if test="record.designCapacity != null" >
|
|
|
469
|
+ design_capacity = #{record.designCapacity,jdbcType=DECIMAL},
|
|
|
470
|
+ </if>
|
|
|
471
|
+ <if test="record.grainVarietyId != null" >
|
|
|
472
|
+ grain_variety_id = #{record.grainVarietyId,jdbcType=INTEGER},
|
|
|
473
|
+ </if>
|
|
|
474
|
+ <if test="record.grainNatureId != null" >
|
|
|
475
|
+ grain_nature_id = #{record.grainNatureId,jdbcType=INTEGER},
|
|
|
476
|
+ </if>
|
|
|
477
|
+ <if test="record.lssl != null" >
|
|
|
478
|
+ lssl = #{record.lssl,jdbcType=DECIMAL},
|
|
|
479
|
+ </if>
|
|
|
480
|
+ <if test="record.grainAreaId != null" >
|
|
|
481
|
+ grain_area_id = #{record.grainAreaId,jdbcType=INTEGER},
|
|
|
482
|
+ </if>
|
|
|
483
|
+ <if test="record.shnd != null" >
|
|
|
484
|
+ shnd = #{record.shnd,jdbcType=DATE},
|
|
|
485
|
+ </if>
|
|
|
486
|
+ <if test="record.rcsj != null" >
|
|
|
487
|
+ rcsj = #{record.rcsj,jdbcType=DATE},
|
|
|
488
|
+ </if>
|
|
|
489
|
+ <if test="record.formWarehouseTime != null" >
|
|
|
490
|
+ form_warehouse_time = #{record.formWarehouseTime,jdbcType=TIMESTAMP},
|
|
|
491
|
+ </if>
|
|
|
492
|
+ <if test="record.grainGradeId != null" >
|
|
|
493
|
+ grain_grade_id = #{record.grainGradeId,jdbcType=INTEGER},
|
|
|
494
|
+ </if>
|
|
|
495
|
+ <if test="record.temperatureMeasureType != null" >
|
|
|
496
|
+ temperature_measure_type = #{record.temperatureMeasureType,jdbcType=TINYINT},
|
|
|
497
|
+ </if>
|
|
|
498
|
+ <if test="record.drafttype != null" >
|
|
|
499
|
+ drafttype = #{record.drafttype,jdbcType=INTEGER},
|
|
|
500
|
+ </if>
|
|
|
501
|
+ <if test="record.glfs != null" >
|
|
|
502
|
+ glfs = #{record.glfs,jdbcType=VARCHAR},
|
|
|
503
|
+ </if>
|
|
|
504
|
+ <if test="record.storageOrgId != null" >
|
|
|
505
|
+ storage_org_id = #{record.storageOrgId,jdbcType=INTEGER},
|
|
|
506
|
+ </if>
|
|
|
507
|
+ <if test="record.keepingWay != null" >
|
|
|
508
|
+ keeping_way = #{record.keepingWay,jdbcType=INTEGER},
|
|
|
509
|
+ </if>
|
|
|
510
|
+ <if test="record.volume != null" >
|
|
|
511
|
+ volume = #{record.volume,jdbcType=DECIMAL},
|
|
|
512
|
+ </if>
|
|
|
513
|
+ <if test="record.length != null" >
|
|
|
514
|
+ length = #{record.length,jdbcType=DECIMAL},
|
|
|
515
|
+ </if>
|
|
|
516
|
+ <if test="record.width != null" >
|
|
|
517
|
+ width = #{record.width,jdbcType=DECIMAL},
|
|
|
518
|
+ </if>
|
|
|
519
|
+ <if test="record.trapezoidUpperLength != null" >
|
|
|
520
|
+ trapezoid_upper_length = #{record.trapezoidUpperLength,jdbcType=DECIMAL},
|
|
|
521
|
+ </if>
|
|
|
522
|
+ <if test="record.trapezoidLowerLength != null" >
|
|
|
523
|
+ trapezoid_lower_length = #{record.trapezoidLowerLength,jdbcType=DECIMAL},
|
|
|
524
|
+ </if>
|
|
|
525
|
+ <if test="record.trapezoidUpperWidth != null" >
|
|
|
526
|
+ trapezoid_upper_width = #{record.trapezoidUpperWidth,jdbcType=DECIMAL},
|
|
|
527
|
+ </if>
|
|
|
528
|
+ <if test="record.trapezoidLowerWidth != null" >
|
|
|
529
|
+ trapezoid_lower_width = #{record.trapezoidLowerWidth,jdbcType=DECIMAL},
|
|
|
530
|
+ </if>
|
|
|
531
|
+ <if test="record.flatStorageHeight != null" >
|
|
|
532
|
+ flat_storage_height = #{record.flatStorageHeight,jdbcType=DECIMAL},
|
|
|
533
|
+ </if>
|
|
|
534
|
+ <if test="record.trapezoidHeight != null" >
|
|
|
535
|
+ trapezoid_height = #{record.trapezoidHeight,jdbcType=DECIMAL},
|
|
|
536
|
+ </if>
|
|
|
537
|
+ <if test="record.siloInnerDiameter != null" >
|
|
|
538
|
+ silo_inner_diameter = #{record.siloInnerDiameter,jdbcType=DECIMAL},
|
|
|
539
|
+ </if>
|
|
|
540
|
+ <if test="record.siloGrainHeight != null" >
|
|
|
541
|
+ silo_grain_height = #{record.siloGrainHeight,jdbcType=DECIMAL},
|
|
|
542
|
+ </if>
|
|
|
543
|
+ <if test="record.packagedCount != null" >
|
|
|
544
|
+ packaged_count = #{record.packagedCount,jdbcType=INTEGER},
|
|
|
545
|
+ </if>
|
|
|
546
|
+ <if test="record.averageWeight != null" >
|
|
|
547
|
+ average_weight = #{record.averageWeight,jdbcType=DECIMAL},
|
|
|
548
|
+ </if>
|
|
|
549
|
+ <if test="record.checkRecordIds != null" >
|
|
|
550
|
+ check_record_ids = #{record.checkRecordIds,jdbcType=VARCHAR},
|
|
|
551
|
+ </if>
|
|
|
552
|
+ </set>
|
|
|
553
|
+ <if test="_parameter != null" >
|
|
|
554
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
555
|
+ </if>
|
|
|
556
|
+ </update>
|
|
|
557
|
+ <update id="updateByExample" parameterType="map" >
|
|
|
558
|
+ update grain_situation_card
|
|
|
559
|
+ set id = #{record.id,jdbcType=INTEGER},
|
|
|
560
|
+ createname = #{record.createname,jdbcType=VARCHAR},
|
|
|
561
|
+ createdate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
|
562
|
+ updatename = #{record.updatename,jdbcType=VARCHAR},
|
|
|
563
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
564
|
+ warehouse_sealing_record_id = #{record.warehouseSealingRecordId,jdbcType=INTEGER},
|
|
|
565
|
+ fill_org_id = #{record.fillOrgId,jdbcType=INTEGER},
|
|
|
566
|
+ keep_org_id = #{record.keepOrgId,jdbcType=INTEGER},
|
|
|
567
|
+ basic_storehouse_id = #{record.basicStorehouseId,jdbcType=INTEGER},
|
|
|
568
|
+ basic_unit_aisle_id = #{record.basicUnitAisleId,jdbcType=INTEGER},
|
|
|
569
|
+ warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
|
570
|
+ storehouse_type = #{record.storehouseType,jdbcType=INTEGER},
|
|
|
571
|
+ design_capacity = #{record.designCapacity,jdbcType=DECIMAL},
|
|
|
572
|
+ grain_variety_id = #{record.grainVarietyId,jdbcType=INTEGER},
|
|
|
573
|
+ grain_nature_id = #{record.grainNatureId,jdbcType=INTEGER},
|
|
|
574
|
+ lssl = #{record.lssl,jdbcType=DECIMAL},
|
|
|
575
|
+ grain_area_id = #{record.grainAreaId,jdbcType=INTEGER},
|
|
|
576
|
+ shnd = #{record.shnd,jdbcType=DATE},
|
|
|
577
|
+ rcsj = #{record.rcsj,jdbcType=DATE},
|
|
|
578
|
+ form_warehouse_time = #{record.formWarehouseTime,jdbcType=TIMESTAMP},
|
|
|
579
|
+ grain_grade_id = #{record.grainGradeId,jdbcType=INTEGER},
|
|
|
580
|
+ temperature_measure_type = #{record.temperatureMeasureType,jdbcType=TINYINT},
|
|
|
581
|
+ drafttype = #{record.drafttype,jdbcType=INTEGER},
|
|
|
582
|
+ glfs = #{record.glfs,jdbcType=VARCHAR},
|
|
|
583
|
+ storage_org_id = #{record.storageOrgId,jdbcType=INTEGER},
|
|
|
584
|
+ keeping_way = #{record.keepingWay,jdbcType=INTEGER},
|
|
|
585
|
+ volume = #{record.volume,jdbcType=DECIMAL},
|
|
|
586
|
+ length = #{record.length,jdbcType=DECIMAL},
|
|
|
587
|
+ width = #{record.width,jdbcType=DECIMAL},
|
|
|
588
|
+ trapezoid_upper_length = #{record.trapezoidUpperLength,jdbcType=DECIMAL},
|
|
|
589
|
+ trapezoid_lower_length = #{record.trapezoidLowerLength,jdbcType=DECIMAL},
|
|
|
590
|
+ trapezoid_upper_width = #{record.trapezoidUpperWidth,jdbcType=DECIMAL},
|
|
|
591
|
+ trapezoid_lower_width = #{record.trapezoidLowerWidth,jdbcType=DECIMAL},
|
|
|
592
|
+ flat_storage_height = #{record.flatStorageHeight,jdbcType=DECIMAL},
|
|
|
593
|
+ trapezoid_height = #{record.trapezoidHeight,jdbcType=DECIMAL},
|
|
|
594
|
+ silo_inner_diameter = #{record.siloInnerDiameter,jdbcType=DECIMAL},
|
|
|
595
|
+ silo_grain_height = #{record.siloGrainHeight,jdbcType=DECIMAL},
|
|
|
596
|
+ packaged_count = #{record.packagedCount,jdbcType=INTEGER},
|
|
|
597
|
+ average_weight = #{record.averageWeight,jdbcType=DECIMAL},
|
|
|
598
|
+ check_record_ids = #{record.checkRecordIds,jdbcType=VARCHAR}
|
|
|
599
|
+ <if test="_parameter != null" >
|
|
|
600
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
601
|
+ </if>
|
|
|
602
|
+ </update>
|
|
|
603
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
|
|
|
604
|
+ update grain_situation_card
|
|
|
605
|
+ <set >
|
|
|
606
|
+ <if test="createname != null" >
|
|
|
607
|
+ createname = #{createname,jdbcType=VARCHAR},
|
|
|
608
|
+ </if>
|
|
|
609
|
+ <if test="createdate != null" >
|
|
|
610
|
+ createdate = #{createdate,jdbcType=TIMESTAMP},
|
|
|
611
|
+ </if>
|
|
|
612
|
+ <if test="updatename != null" >
|
|
|
613
|
+ updatename = #{updatename,jdbcType=VARCHAR},
|
|
|
614
|
+ </if>
|
|
|
615
|
+ <if test="updatedate != null" >
|
|
|
616
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
617
|
+ </if>
|
|
|
618
|
+ <if test="warehouseSealingRecordId != null" >
|
|
|
619
|
+ warehouse_sealing_record_id = #{warehouseSealingRecordId,jdbcType=INTEGER},
|
|
|
620
|
+ </if>
|
|
|
621
|
+ <if test="fillOrgId != null" >
|
|
|
622
|
+ fill_org_id = #{fillOrgId,jdbcType=INTEGER},
|
|
|
623
|
+ </if>
|
|
|
624
|
+ <if test="keepOrgId != null" >
|
|
|
625
|
+ keep_org_id = #{keepOrgId,jdbcType=INTEGER},
|
|
|
626
|
+ </if>
|
|
|
627
|
+ <if test="basicStorehouseId != null" >
|
|
|
628
|
+ basic_storehouse_id = #{basicStorehouseId,jdbcType=INTEGER},
|
|
|
629
|
+ </if>
|
|
|
630
|
+ <if test="basicUnitAisleId != null" >
|
|
|
631
|
+ basic_unit_aisle_id = #{basicUnitAisleId,jdbcType=INTEGER},
|
|
|
632
|
+ </if>
|
|
|
633
|
+ <if test="warehouseId != null" >
|
|
|
634
|
+ warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
|
635
|
+ </if>
|
|
|
636
|
+ <if test="storehouseType != null" >
|
|
|
637
|
+ storehouse_type = #{storehouseType,jdbcType=INTEGER},
|
|
|
638
|
+ </if>
|
|
|
639
|
+ <if test="designCapacity != null" >
|
|
|
640
|
+ design_capacity = #{designCapacity,jdbcType=DECIMAL},
|
|
|
641
|
+ </if>
|
|
|
642
|
+ <if test="grainVarietyId != null" >
|
|
|
643
|
+ grain_variety_id = #{grainVarietyId,jdbcType=INTEGER},
|
|
|
644
|
+ </if>
|
|
|
645
|
+ <if test="grainNatureId != null" >
|
|
|
646
|
+ grain_nature_id = #{grainNatureId,jdbcType=INTEGER},
|
|
|
647
|
+ </if>
|
|
|
648
|
+ <if test="lssl != null" >
|
|
|
649
|
+ lssl = #{lssl,jdbcType=DECIMAL},
|
|
|
650
|
+ </if>
|
|
|
651
|
+ <if test="grainAreaId != null" >
|
|
|
652
|
+ grain_area_id = #{grainAreaId,jdbcType=INTEGER},
|
|
|
653
|
+ </if>
|
|
|
654
|
+ <if test="shnd != null" >
|
|
|
655
|
+ shnd = #{shnd,jdbcType=DATE},
|
|
|
656
|
+ </if>
|
|
|
657
|
+ <if test="rcsj != null" >
|
|
|
658
|
+ rcsj = #{rcsj,jdbcType=DATE},
|
|
|
659
|
+ </if>
|
|
|
660
|
+ <if test="formWarehouseTime != null" >
|
|
|
661
|
+ form_warehouse_time = #{formWarehouseTime,jdbcType=TIMESTAMP},
|
|
|
662
|
+ </if>
|
|
|
663
|
+ <if test="grainGradeId != null" >
|
|
|
664
|
+ grain_grade_id = #{grainGradeId,jdbcType=INTEGER},
|
|
|
665
|
+ </if>
|
|
|
666
|
+ <if test="temperatureMeasureType != null" >
|
|
|
667
|
+ temperature_measure_type = #{temperatureMeasureType,jdbcType=TINYINT},
|
|
|
668
|
+ </if>
|
|
|
669
|
+ <if test="drafttype != null" >
|
|
|
670
|
+ drafttype = #{drafttype,jdbcType=INTEGER},
|
|
|
671
|
+ </if>
|
|
|
672
|
+ <if test="glfs != null" >
|
|
|
673
|
+ glfs = #{glfs,jdbcType=VARCHAR},
|
|
|
674
|
+ </if>
|
|
|
675
|
+ <if test="storageOrgId != null" >
|
|
|
676
|
+ storage_org_id = #{storageOrgId,jdbcType=INTEGER},
|
|
|
677
|
+ </if>
|
|
|
678
|
+ <if test="keepingWay != null" >
|
|
|
679
|
+ keeping_way = #{keepingWay,jdbcType=INTEGER},
|
|
|
680
|
+ </if>
|
|
|
681
|
+ <if test="volume != null" >
|
|
|
682
|
+ volume = #{volume,jdbcType=DECIMAL},
|
|
|
683
|
+ </if>
|
|
|
684
|
+ <if test="length != null" >
|
|
|
685
|
+ length = #{length,jdbcType=DECIMAL},
|
|
|
686
|
+ </if>
|
|
|
687
|
+ <if test="width != null" >
|
|
|
688
|
+ width = #{width,jdbcType=DECIMAL},
|
|
|
689
|
+ </if>
|
|
|
690
|
+ <if test="trapezoidUpperLength != null" >
|
|
|
691
|
+ trapezoid_upper_length = #{trapezoidUpperLength,jdbcType=DECIMAL},
|
|
|
692
|
+ </if>
|
|
|
693
|
+ <if test="trapezoidLowerLength != null" >
|
|
|
694
|
+ trapezoid_lower_length = #{trapezoidLowerLength,jdbcType=DECIMAL},
|
|
|
695
|
+ </if>
|
|
|
696
|
+ <if test="trapezoidUpperWidth != null" >
|
|
|
697
|
+ trapezoid_upper_width = #{trapezoidUpperWidth,jdbcType=DECIMAL},
|
|
|
698
|
+ </if>
|
|
|
699
|
+ <if test="trapezoidLowerWidth != null" >
|
|
|
700
|
+ trapezoid_lower_width = #{trapezoidLowerWidth,jdbcType=DECIMAL},
|
|
|
701
|
+ </if>
|
|
|
702
|
+ <if test="flatStorageHeight != null" >
|
|
|
703
|
+ flat_storage_height = #{flatStorageHeight,jdbcType=DECIMAL},
|
|
|
704
|
+ </if>
|
|
|
705
|
+ <if test="trapezoidHeight != null" >
|
|
|
706
|
+ trapezoid_height = #{trapezoidHeight,jdbcType=DECIMAL},
|
|
|
707
|
+ </if>
|
|
|
708
|
+ <if test="siloInnerDiameter != null" >
|
|
|
709
|
+ silo_inner_diameter = #{siloInnerDiameter,jdbcType=DECIMAL},
|
|
|
710
|
+ </if>
|
|
|
711
|
+ <if test="siloGrainHeight != null" >
|
|
|
712
|
+ silo_grain_height = #{siloGrainHeight,jdbcType=DECIMAL},
|
|
|
713
|
+ </if>
|
|
|
714
|
+ <if test="packagedCount != null" >
|
|
|
715
|
+ packaged_count = #{packagedCount,jdbcType=INTEGER},
|
|
|
716
|
+ </if>
|
|
|
717
|
+ <if test="averageWeight != null" >
|
|
|
718
|
+ average_weight = #{averageWeight,jdbcType=DECIMAL},
|
|
|
719
|
+ </if>
|
|
|
720
|
+ <if test="checkRecordIds != null" >
|
|
|
721
|
+ check_record_ids = #{checkRecordIds,jdbcType=VARCHAR},
|
|
|
722
|
+ </if>
|
|
|
723
|
+ </set>
|
|
|
724
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
725
|
+ </update>
|
|
|
726
|
+ <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
|
|
|
727
|
+ update grain_situation_card
|
|
|
728
|
+ set createname = #{createname,jdbcType=VARCHAR},
|
|
|
729
|
+ createdate = #{createdate,jdbcType=TIMESTAMP},
|
|
|
730
|
+ updatename = #{updatename,jdbcType=VARCHAR},
|
|
|
731
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
732
|
+ warehouse_sealing_record_id = #{warehouseSealingRecordId,jdbcType=INTEGER},
|
|
|
733
|
+ fill_org_id = #{fillOrgId,jdbcType=INTEGER},
|
|
|
734
|
+ keep_org_id = #{keepOrgId,jdbcType=INTEGER},
|
|
|
735
|
+ basic_storehouse_id = #{basicStorehouseId,jdbcType=INTEGER},
|
|
|
736
|
+ basic_unit_aisle_id = #{basicUnitAisleId,jdbcType=INTEGER},
|
|
|
737
|
+ warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
|
738
|
+ storehouse_type = #{storehouseType,jdbcType=INTEGER},
|
|
|
739
|
+ design_capacity = #{designCapacity,jdbcType=DECIMAL},
|
|
|
740
|
+ grain_variety_id = #{grainVarietyId,jdbcType=INTEGER},
|
|
|
741
|
+ grain_nature_id = #{grainNatureId,jdbcType=INTEGER},
|
|
|
742
|
+ lssl = #{lssl,jdbcType=DECIMAL},
|
|
|
743
|
+ grain_area_id = #{grainAreaId,jdbcType=INTEGER},
|
|
|
744
|
+ shnd = #{shnd,jdbcType=DATE},
|
|
|
745
|
+ rcsj = #{rcsj,jdbcType=DATE},
|
|
|
746
|
+ form_warehouse_time = #{formWarehouseTime,jdbcType=TIMESTAMP},
|
|
|
747
|
+ grain_grade_id = #{grainGradeId,jdbcType=INTEGER},
|
|
|
748
|
+ temperature_measure_type = #{temperatureMeasureType,jdbcType=TINYINT},
|
|
|
749
|
+ drafttype = #{drafttype,jdbcType=INTEGER},
|
|
|
750
|
+ glfs = #{glfs,jdbcType=VARCHAR},
|
|
|
751
|
+ storage_org_id = #{storageOrgId,jdbcType=INTEGER},
|
|
|
752
|
+ keeping_way = #{keepingWay,jdbcType=INTEGER},
|
|
|
753
|
+ volume = #{volume,jdbcType=DECIMAL},
|
|
|
754
|
+ length = #{length,jdbcType=DECIMAL},
|
|
|
755
|
+ width = #{width,jdbcType=DECIMAL},
|
|
|
756
|
+ trapezoid_upper_length = #{trapezoidUpperLength,jdbcType=DECIMAL},
|
|
|
757
|
+ trapezoid_lower_length = #{trapezoidLowerLength,jdbcType=DECIMAL},
|
|
|
758
|
+ trapezoid_upper_width = #{trapezoidUpperWidth,jdbcType=DECIMAL},
|
|
|
759
|
+ trapezoid_lower_width = #{trapezoidLowerWidth,jdbcType=DECIMAL},
|
|
|
760
|
+ flat_storage_height = #{flatStorageHeight,jdbcType=DECIMAL},
|
|
|
761
|
+ trapezoid_height = #{trapezoidHeight,jdbcType=DECIMAL},
|
|
|
762
|
+ silo_inner_diameter = #{siloInnerDiameter,jdbcType=DECIMAL},
|
|
|
763
|
+ silo_grain_height = #{siloGrainHeight,jdbcType=DECIMAL},
|
|
|
764
|
+ packaged_count = #{packagedCount,jdbcType=INTEGER},
|
|
|
765
|
+ average_weight = #{averageWeight,jdbcType=DECIMAL},
|
|
|
766
|
+ check_record_ids = #{checkRecordIds,jdbcType=VARCHAR}
|
|
|
767
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
768
|
+ </update>
|
|
|
769
|
+</mapper>
|