|
|
@@ -1,435 +1,448 @@
|
|
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.business.mapper.BusinessStoreWareDetailMapper" >
|
|
4
|
|
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
5
|
|
- <id column="id" property="id" jdbcType="INTEGER" />
|
|
6
|
|
- <result column="zid" property="zid" jdbcType="INTEGER" />
|
|
7
|
|
- <result column="type" property="type" jdbcType="VARCHAR" />
|
|
8
|
|
- <result column="house_id" property="houseId" jdbcType="INTEGER" />
|
|
9
|
|
- <result column="house_name" property="houseName" jdbcType="VARCHAR" />
|
|
10
|
|
- <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
|
|
11
|
|
- <result column="warehouse_name" property="warehouseName" jdbcType="VARCHAR" />
|
|
12
|
|
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
13
|
|
- <result column="org_id" property="orgId" jdbcType="INTEGER" />
|
|
14
|
|
- <result column="grain_kind" property="grainKind" jdbcType="INTEGER" />
|
|
15
|
|
- <result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
|
|
16
|
|
- <result column="grain_grade" property="grainGrade" jdbcType="INTEGER" />
|
|
17
|
|
- <result column="grain_attribute" property="grainAttribute" jdbcType="INTEGER" />
|
|
18
|
|
- <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
|
|
19
|
|
- <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
|
|
20
|
|
- <result column="price" property="price" jdbcType="VARCHAR" />
|
|
21
|
|
- <result column="count" property="count" jdbcType="VARCHAR" />
|
|
22
|
|
- <result column="detail_total_price" property="detailTotalPrice" jdbcType="VARCHAR" />
|
|
23
|
|
- <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
|
|
24
|
|
- </resultMap>
|
|
25
|
|
- <sql id="Example_Where_Clause" >
|
|
26
|
|
- <where >
|
|
27
|
|
- <foreach collection="oredCriteria" item="criteria" separator="or" >
|
|
28
|
|
- <if test="criteria.valid" >
|
|
29
|
|
- <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
30
|
|
- <foreach collection="criteria.criteria" item="criterion" >
|
|
31
|
|
- <choose >
|
|
32
|
|
- <when test="criterion.noValue" >
|
|
33
|
|
- and ${criterion.condition}
|
|
34
|
|
- </when>
|
|
35
|
|
- <when test="criterion.singleValue" >
|
|
36
|
|
- and ${criterion.condition} #{criterion.value}
|
|
37
|
|
- </when>
|
|
38
|
|
- <when test="criterion.betweenValue" >
|
|
39
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
40
|
|
- </when>
|
|
41
|
|
- <when test="criterion.listValue" >
|
|
42
|
|
- and ${criterion.condition}
|
|
43
|
|
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
44
|
|
- #{listItem}
|
|
45
|
|
- </foreach>
|
|
46
|
|
- </when>
|
|
47
|
|
- </choose>
|
|
48
|
|
- </foreach>
|
|
49
|
|
- </trim>
|
|
50
|
|
- </if>
|
|
51
|
|
- </foreach>
|
|
52
|
|
- </where>
|
|
53
|
|
- </sql>
|
|
54
|
|
- <sql id="Update_By_Example_Where_Clause" >
|
|
55
|
|
- <where >
|
|
56
|
|
- <foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
|
57
|
|
- <if test="criteria.valid" >
|
|
58
|
|
- <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
59
|
|
- <foreach collection="criteria.criteria" item="criterion" >
|
|
60
|
|
- <choose >
|
|
61
|
|
- <when test="criterion.noValue" >
|
|
62
|
|
- and ${criterion.condition}
|
|
63
|
|
- </when>
|
|
64
|
|
- <when test="criterion.singleValue" >
|
|
65
|
|
- and ${criterion.condition} #{criterion.value}
|
|
66
|
|
- </when>
|
|
67
|
|
- <when test="criterion.betweenValue" >
|
|
68
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
69
|
|
- </when>
|
|
70
|
|
- <when test="criterion.listValue" >
|
|
71
|
|
- and ${criterion.condition}
|
|
72
|
|
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
73
|
|
- #{listItem}
|
|
74
|
|
- </foreach>
|
|
75
|
|
- </when>
|
|
76
|
|
- </choose>
|
|
77
|
|
- </foreach>
|
|
78
|
|
- </trim>
|
|
79
|
|
- </if>
|
|
80
|
|
- </foreach>
|
|
81
|
|
- </where>
|
|
82
|
|
- </sql>
|
|
83
|
|
- <sql id="Base_Column_List" >
|
|
84
|
|
- id, zid, type, house_id, house_name, warehouse_id, warehouse_name, create_time, org_id,
|
|
85
|
|
- grain_kind, grain_detail_kind, grain_grade, grain_attribute, grain_annual, grain_producing_area,
|
|
86
|
|
- price, count, detail_total_price, input_time
|
|
87
|
|
- </sql>
|
|
88
|
|
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
|
|
89
|
|
- select
|
|
90
|
|
- <if test="distinct" >
|
|
91
|
|
- distinct
|
|
92
|
|
- </if>
|
|
93
|
|
- <include refid="Base_Column_List" />
|
|
94
|
|
- from business_store_ware_detail
|
|
95
|
|
- <if test="_parameter != null" >
|
|
96
|
|
- <include refid="Example_Where_Clause" />
|
|
97
|
|
- </if>
|
|
98
|
|
- <if test="orderByClause != null" >
|
|
99
|
|
- order by ${orderByClause}
|
|
100
|
|
- </if>
|
|
101
|
|
- </select>
|
|
102
|
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
103
|
|
- select
|
|
104
|
|
- <include refid="Base_Column_List" />
|
|
105
|
|
- from business_store_ware_detail
|
|
106
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
107
|
|
- </select>
|
|
108
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
109
|
|
- delete from business_store_ware_detail
|
|
110
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
111
|
|
- </delete>
|
|
112
|
|
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
|
|
113
|
|
- delete from business_store_ware_detail
|
|
114
|
|
- <if test="_parameter != null" >
|
|
115
|
|
- <include refid="Example_Where_Clause" />
|
|
116
|
|
- </if>
|
|
117
|
|
- </delete>
|
|
118
|
|
- <insert id="insert" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
119
|
|
- insert into business_store_ware_detail (id, zid, type,
|
|
120
|
|
- house_id, house_name, warehouse_id,
|
|
121
|
|
- warehouse_name, create_time, org_id,
|
|
122
|
|
- grain_kind, grain_detail_kind, grain_grade,
|
|
123
|
|
- grain_attribute, grain_annual, grain_producing_area,
|
|
124
|
|
- price, count, detail_total_price,
|
|
125
|
|
- input_time)
|
|
126
|
|
- values (#{id,jdbcType=INTEGER}, #{zid,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR},
|
|
127
|
|
- #{houseId,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR}, #{warehouseId,jdbcType=INTEGER},
|
|
128
|
|
- #{warehouseName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER},
|
|
129
|
|
- #{grainKind,jdbcType=INTEGER}, #{grainDetailKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER},
|
|
130
|
|
- #{grainAttribute,jdbcType=INTEGER}, #{grainAnnual,jdbcType=INTEGER}, #{grainProducingArea,jdbcType=INTEGER},
|
|
131
|
|
- #{price,jdbcType=VARCHAR}, #{count,jdbcType=VARCHAR}, #{detailTotalPrice,jdbcType=VARCHAR},
|
|
132
|
|
- #{inputTime,jdbcType=TIMESTAMP})
|
|
133
|
|
- </insert>
|
|
134
|
|
- <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
135
|
|
- insert into business_store_ware_detail
|
|
136
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
137
|
|
- <if test="id != null" >
|
|
138
|
|
- id,
|
|
139
|
|
- </if>
|
|
140
|
|
- <if test="zid != null" >
|
|
141
|
|
- zid,
|
|
142
|
|
- </if>
|
|
143
|
|
- <if test="type != null" >
|
|
144
|
|
- type,
|
|
145
|
|
- </if>
|
|
146
|
|
- <if test="houseId != null" >
|
|
147
|
|
- house_id,
|
|
148
|
|
- </if>
|
|
149
|
|
- <if test="houseName != null" >
|
|
150
|
|
- house_name,
|
|
151
|
|
- </if>
|
|
152
|
|
- <if test="warehouseId != null" >
|
|
153
|
|
- warehouse_id,
|
|
154
|
|
- </if>
|
|
155
|
|
- <if test="warehouseName != null" >
|
|
156
|
|
- warehouse_name,
|
|
157
|
|
- </if>
|
|
158
|
|
- <if test="createTime != null" >
|
|
159
|
|
- create_time,
|
|
160
|
|
- </if>
|
|
161
|
|
- <if test="orgId != null" >
|
|
162
|
|
- org_id,
|
|
163
|
|
- </if>
|
|
164
|
|
- <if test="grainKind != null" >
|
|
165
|
|
- grain_kind,
|
|
166
|
|
- </if>
|
|
167
|
|
- <if test="grainDetailKind != null" >
|
|
168
|
|
- grain_detail_kind,
|
|
169
|
|
- </if>
|
|
170
|
|
- <if test="grainGrade != null" >
|
|
171
|
|
- grain_grade,
|
|
172
|
|
- </if>
|
|
173
|
|
- <if test="grainAttribute != null" >
|
|
174
|
|
- grain_attribute,
|
|
175
|
|
- </if>
|
|
176
|
|
- <if test="grainAnnual != null" >
|
|
177
|
|
- grain_annual,
|
|
178
|
|
- </if>
|
|
179
|
|
- <if test="grainProducingArea != null" >
|
|
180
|
|
- grain_producing_area,
|
|
181
|
|
- </if>
|
|
182
|
|
- <if test="price != null" >
|
|
183
|
|
- price,
|
|
184
|
|
- </if>
|
|
185
|
|
- <if test="count != null" >
|
|
186
|
|
- count,
|
|
187
|
|
- </if>
|
|
188
|
|
- <if test="detailTotalPrice != null" >
|
|
189
|
|
- detail_total_price,
|
|
190
|
|
- </if>
|
|
191
|
|
- <if test="inputTime != null" >
|
|
192
|
|
- input_time,
|
|
193
|
|
- </if>
|
|
194
|
|
- </trim>
|
|
195
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
196
|
|
- <if test="id != null" >
|
|
197
|
|
- #{id,jdbcType=INTEGER},
|
|
198
|
|
- </if>
|
|
199
|
|
- <if test="zid != null" >
|
|
200
|
|
- #{zid,jdbcType=INTEGER},
|
|
201
|
|
- </if>
|
|
202
|
|
- <if test="type != null" >
|
|
203
|
|
- #{type,jdbcType=VARCHAR},
|
|
204
|
|
- </if>
|
|
205
|
|
- <if test="houseId != null" >
|
|
206
|
|
- #{houseId,jdbcType=INTEGER},
|
|
207
|
|
- </if>
|
|
208
|
|
- <if test="houseName != null" >
|
|
209
|
|
- #{houseName,jdbcType=VARCHAR},
|
|
210
|
|
- </if>
|
|
211
|
|
- <if test="warehouseId != null" >
|
|
212
|
|
- #{warehouseId,jdbcType=INTEGER},
|
|
213
|
|
- </if>
|
|
214
|
|
- <if test="warehouseName != null" >
|
|
215
|
|
- #{warehouseName,jdbcType=VARCHAR},
|
|
216
|
|
- </if>
|
|
217
|
|
- <if test="createTime != null" >
|
|
218
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
219
|
|
- </if>
|
|
220
|
|
- <if test="orgId != null" >
|
|
221
|
|
- #{orgId,jdbcType=INTEGER},
|
|
222
|
|
- </if>
|
|
223
|
|
- <if test="grainKind != null" >
|
|
224
|
|
- #{grainKind,jdbcType=INTEGER},
|
|
225
|
|
- </if>
|
|
226
|
|
- <if test="grainDetailKind != null" >
|
|
227
|
|
- #{grainDetailKind,jdbcType=INTEGER},
|
|
228
|
|
- </if>
|
|
229
|
|
- <if test="grainGrade != null" >
|
|
230
|
|
- #{grainGrade,jdbcType=INTEGER},
|
|
231
|
|
- </if>
|
|
232
|
|
- <if test="grainAttribute != null" >
|
|
233
|
|
- #{grainAttribute,jdbcType=INTEGER},
|
|
234
|
|
- </if>
|
|
235
|
|
- <if test="grainAnnual != null" >
|
|
236
|
|
- #{grainAnnual,jdbcType=INTEGER},
|
|
237
|
|
- </if>
|
|
238
|
|
- <if test="grainProducingArea != null" >
|
|
239
|
|
- #{grainProducingArea,jdbcType=INTEGER},
|
|
240
|
|
- </if>
|
|
241
|
|
- <if test="price != null" >
|
|
242
|
|
- #{price,jdbcType=VARCHAR},
|
|
243
|
|
- </if>
|
|
244
|
|
- <if test="count != null" >
|
|
245
|
|
- #{count,jdbcType=VARCHAR},
|
|
246
|
|
- </if>
|
|
247
|
|
- <if test="detailTotalPrice != null" >
|
|
248
|
|
- #{detailTotalPrice,jdbcType=VARCHAR},
|
|
249
|
|
- </if>
|
|
250
|
|
- <if test="inputTime != null" >
|
|
251
|
|
- #{inputTime,jdbcType=TIMESTAMP},
|
|
252
|
|
- </if>
|
|
253
|
|
- </trim>
|
|
254
|
|
- </insert>
|
|
255
|
|
- <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" resultType="java.lang.Integer" >
|
|
256
|
|
- select count(*) from business_store_ware_detail
|
|
257
|
|
- <if test="_parameter != null" >
|
|
258
|
|
- <include refid="Example_Where_Clause" />
|
|
259
|
|
- </if>
|
|
260
|
|
- </select>
|
|
261
|
|
- <update id="updateByExampleSelective" parameterType="map" >
|
|
262
|
|
- update business_store_ware_detail
|
|
263
|
|
- <set >
|
|
264
|
|
- <if test="record.id != null" >
|
|
265
|
|
- id = #{record.id,jdbcType=INTEGER},
|
|
266
|
|
- </if>
|
|
267
|
|
- <if test="record.zid != null" >
|
|
268
|
|
- zid = #{record.zid,jdbcType=INTEGER},
|
|
269
|
|
- </if>
|
|
270
|
|
- <if test="record.type != null" >
|
|
271
|
|
- type = #{record.type,jdbcType=VARCHAR},
|
|
272
|
|
- </if>
|
|
273
|
|
- <if test="record.houseId != null" >
|
|
274
|
|
- house_id = #{record.houseId,jdbcType=INTEGER},
|
|
275
|
|
- </if>
|
|
276
|
|
- <if test="record.houseName != null" >
|
|
277
|
|
- house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
278
|
|
- </if>
|
|
279
|
|
- <if test="record.warehouseId != null" >
|
|
280
|
|
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
281
|
|
- </if>
|
|
282
|
|
- <if test="record.warehouseName != null" >
|
|
283
|
|
- warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
|
|
284
|
|
- </if>
|
|
285
|
|
- <if test="record.createTime != null" >
|
|
286
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
287
|
|
- </if>
|
|
288
|
|
- <if test="record.orgId != null" >
|
|
289
|
|
- org_id = #{record.orgId,jdbcType=INTEGER},
|
|
290
|
|
- </if>
|
|
291
|
|
- <if test="record.grainKind != null" >
|
|
292
|
|
- grain_kind = #{record.grainKind,jdbcType=INTEGER},
|
|
293
|
|
- </if>
|
|
294
|
|
- <if test="record.grainDetailKind != null" >
|
|
295
|
|
- grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
|
|
296
|
|
- </if>
|
|
297
|
|
- <if test="record.grainGrade != null" >
|
|
298
|
|
- grain_grade = #{record.grainGrade,jdbcType=INTEGER},
|
|
299
|
|
- </if>
|
|
300
|
|
- <if test="record.grainAttribute != null" >
|
|
301
|
|
- grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
|
|
302
|
|
- </if>
|
|
303
|
|
- <if test="record.grainAnnual != null" >
|
|
304
|
|
- grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
305
|
|
- </if>
|
|
306
|
|
- <if test="record.grainProducingArea != null" >
|
|
307
|
|
- grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
308
|
|
- </if>
|
|
309
|
|
- <if test="record.price != null" >
|
|
310
|
|
- price = #{record.price,jdbcType=VARCHAR},
|
|
311
|
|
- </if>
|
|
312
|
|
- <if test="record.count != null" >
|
|
313
|
|
- count = #{record.count,jdbcType=VARCHAR},
|
|
314
|
|
- </if>
|
|
315
|
|
- <if test="record.detailTotalPrice != null" >
|
|
316
|
|
- detail_total_price = #{record.detailTotalPrice,jdbcType=VARCHAR},
|
|
317
|
|
- </if>
|
|
318
|
|
- <if test="record.inputTime != null" >
|
|
319
|
|
- input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
320
|
|
- </if>
|
|
321
|
|
- </set>
|
|
322
|
|
- <if test="_parameter != null" >
|
|
323
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
324
|
|
- </if>
|
|
325
|
|
- </update>
|
|
326
|
|
- <update id="updateByExample" parameterType="map" >
|
|
327
|
|
- update business_store_ware_detail
|
|
328
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
329
|
|
- zid = #{record.zid,jdbcType=INTEGER},
|
|
330
|
|
- type = #{record.type,jdbcType=VARCHAR},
|
|
331
|
|
- house_id = #{record.houseId,jdbcType=INTEGER},
|
|
332
|
|
- house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
333
|
|
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
334
|
|
- warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
|
|
335
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
336
|
|
- org_id = #{record.orgId,jdbcType=INTEGER},
|
|
337
|
|
- grain_kind = #{record.grainKind,jdbcType=INTEGER},
|
|
338
|
|
- grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
|
|
339
|
|
- grain_grade = #{record.grainGrade,jdbcType=INTEGER},
|
|
340
|
|
- grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
|
|
341
|
|
- grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
342
|
|
- grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
343
|
|
- price = #{record.price,jdbcType=VARCHAR},
|
|
344
|
|
- count = #{record.count,jdbcType=VARCHAR},
|
|
345
|
|
- detail_total_price = #{record.detailTotalPrice,jdbcType=VARCHAR},
|
|
346
|
|
- input_time = #{record.inputTime,jdbcType=TIMESTAMP}
|
|
347
|
|
- <if test="_parameter != null" >
|
|
348
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
349
|
|
- </if>
|
|
350
|
|
- </update>
|
|
351
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
352
|
|
- update business_store_ware_detail
|
|
353
|
|
- <set >
|
|
354
|
|
- <if test="zid != null" >
|
|
355
|
|
- zid = #{zid,jdbcType=INTEGER},
|
|
356
|
|
- </if>
|
|
357
|
|
- <if test="type != null" >
|
|
358
|
|
- type = #{type,jdbcType=VARCHAR},
|
|
359
|
|
- </if>
|
|
360
|
|
- <if test="houseId != null" >
|
|
361
|
|
- house_id = #{houseId,jdbcType=INTEGER},
|
|
362
|
|
- </if>
|
|
363
|
|
- <if test="houseName != null" >
|
|
364
|
|
- house_name = #{houseName,jdbcType=VARCHAR},
|
|
365
|
|
- </if>
|
|
366
|
|
- <if test="warehouseId != null" >
|
|
367
|
|
- warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
368
|
|
- </if>
|
|
369
|
|
- <if test="warehouseName != null" >
|
|
370
|
|
- warehouse_name = #{warehouseName,jdbcType=VARCHAR},
|
|
371
|
|
- </if>
|
|
372
|
|
- <if test="createTime != null" >
|
|
373
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
374
|
|
- </if>
|
|
375
|
|
- <if test="orgId != null" >
|
|
376
|
|
- org_id = #{orgId,jdbcType=INTEGER},
|
|
377
|
|
- </if>
|
|
378
|
|
- <if test="grainKind != null" >
|
|
379
|
|
- grain_kind = #{grainKind,jdbcType=INTEGER},
|
|
380
|
|
- </if>
|
|
381
|
|
- <if test="grainDetailKind != null" >
|
|
382
|
|
- grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
|
|
383
|
|
- </if>
|
|
384
|
|
- <if test="grainGrade != null" >
|
|
385
|
|
- grain_grade = #{grainGrade,jdbcType=INTEGER},
|
|
386
|
|
- </if>
|
|
387
|
|
- <if test="grainAttribute != null" >
|
|
388
|
|
- grain_attribute = #{grainAttribute,jdbcType=INTEGER},
|
|
389
|
|
- </if>
|
|
390
|
|
- <if test="grainAnnual != null" >
|
|
391
|
|
- grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
392
|
|
- </if>
|
|
393
|
|
- <if test="grainProducingArea != null" >
|
|
394
|
|
- grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
395
|
|
- </if>
|
|
396
|
|
- <if test="price != null" >
|
|
397
|
|
- price = #{price,jdbcType=VARCHAR},
|
|
398
|
|
- </if>
|
|
399
|
|
- <if test="count != null" >
|
|
400
|
|
- count = #{count,jdbcType=VARCHAR},
|
|
401
|
|
- </if>
|
|
402
|
|
- <if test="detailTotalPrice != null" >
|
|
403
|
|
- detail_total_price = #{detailTotalPrice,jdbcType=VARCHAR},
|
|
404
|
|
- </if>
|
|
405
|
|
- <if test="inputTime != null" >
|
|
406
|
|
- input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
407
|
|
- </if>
|
|
408
|
|
- </set>
|
|
409
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
410
|
|
- </update>
|
|
411
|
|
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
412
|
|
- update business_store_ware_detail
|
|
413
|
|
- set zid = #{zid,jdbcType=INTEGER},
|
|
414
|
|
- type = #{type,jdbcType=VARCHAR},
|
|
415
|
|
- house_id = #{houseId,jdbcType=INTEGER},
|
|
416
|
|
- house_name = #{houseName,jdbcType=VARCHAR},
|
|
417
|
|
- warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
418
|
|
- warehouse_name = #{warehouseName,jdbcType=VARCHAR},
|
|
419
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
420
|
|
- org_id = #{orgId,jdbcType=INTEGER},
|
|
421
|
|
- grain_kind = #{grainKind,jdbcType=INTEGER},
|
|
422
|
|
- grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
|
|
423
|
|
- grain_grade = #{grainGrade,jdbcType=INTEGER},
|
|
424
|
|
- grain_attribute = #{grainAttribute,jdbcType=INTEGER},
|
|
425
|
|
- grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
426
|
|
- grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
427
|
|
- price = #{price,jdbcType=VARCHAR},
|
|
428
|
|
- count = #{count,jdbcType=VARCHAR},
|
|
429
|
|
- detail_total_price = #{detailTotalPrice,jdbcType=VARCHAR},
|
|
430
|
|
- input_time = #{inputTime,jdbcType=TIMESTAMP}
|
|
431
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
432
|
|
- </update>
|
|
433
|
|
-
|
|
434
|
|
-
|
|
|
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.business.mapper.BusinessStoreWareDetailMapper" >
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
|
5
|
+ <id column="id" property="id" jdbcType="INTEGER" />
|
|
|
6
|
+ <result column="zid" property="zid" jdbcType="INTEGER" />
|
|
|
7
|
+ <result column="type" property="type" jdbcType="VARCHAR" />
|
|
|
8
|
+ <result column="house_id" property="houseId" jdbcType="INTEGER" />
|
|
|
9
|
+ <result column="house_name" property="houseName" jdbcType="VARCHAR" />
|
|
|
10
|
+ <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
|
|
|
11
|
+ <result column="warehouse_name" property="warehouseName" jdbcType="VARCHAR" />
|
|
|
12
|
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
13
|
+ <result column="org_id" property="orgId" jdbcType="INTEGER" />
|
|
|
14
|
+ <result column="grain_kind" property="grainKind" jdbcType="INTEGER" />
|
|
|
15
|
+ <result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
|
|
|
16
|
+ <result column="grain_grade" property="grainGrade" jdbcType="INTEGER" />
|
|
|
17
|
+ <result column="grain_attribute" property="grainAttribute" jdbcType="INTEGER" />
|
|
|
18
|
+ <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
|
|
|
19
|
+ <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
|
|
|
20
|
+ <result column="price" property="price" jdbcType="VARCHAR" />
|
|
|
21
|
+ <result column="count" property="count" jdbcType="VARCHAR" />
|
|
|
22
|
+ <result column="detail_total_price" property="detailTotalPrice" jdbcType="VARCHAR" />
|
|
|
23
|
+ <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
|
|
|
24
|
+ <result column="state" property="state" jdbcType="INTEGER" />
|
|
|
25
|
+ </resultMap>
|
|
|
26
|
+ <sql id="Example_Where_Clause" >
|
|
|
27
|
+ <where >
|
|
|
28
|
+ <foreach collection="oredCriteria" item="criteria" separator="or" >
|
|
|
29
|
+ <if test="criteria.valid" >
|
|
|
30
|
+ <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
|
31
|
+ <foreach collection="criteria.criteria" item="criterion" >
|
|
|
32
|
+ <choose >
|
|
|
33
|
+ <when test="criterion.noValue" >
|
|
|
34
|
+ and ${criterion.condition}
|
|
|
35
|
+ </when>
|
|
|
36
|
+ <when test="criterion.singleValue" >
|
|
|
37
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
38
|
+ </when>
|
|
|
39
|
+ <when test="criterion.betweenValue" >
|
|
|
40
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
41
|
+ </when>
|
|
|
42
|
+ <when test="criterion.listValue" >
|
|
|
43
|
+ and ${criterion.condition}
|
|
|
44
|
+ <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
|
45
|
+ #{listItem}
|
|
|
46
|
+ </foreach>
|
|
|
47
|
+ </when>
|
|
|
48
|
+ </choose>
|
|
|
49
|
+ </foreach>
|
|
|
50
|
+ </trim>
|
|
|
51
|
+ </if>
|
|
|
52
|
+ </foreach>
|
|
|
53
|
+ </where>
|
|
|
54
|
+ </sql>
|
|
|
55
|
+ <sql id="Update_By_Example_Where_Clause" >
|
|
|
56
|
+ <where >
|
|
|
57
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
|
|
58
|
+ <if test="criteria.valid" >
|
|
|
59
|
+ <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
|
60
|
+ <foreach collection="criteria.criteria" item="criterion" >
|
|
|
61
|
+ <choose >
|
|
|
62
|
+ <when test="criterion.noValue" >
|
|
|
63
|
+ and ${criterion.condition}
|
|
|
64
|
+ </when>
|
|
|
65
|
+ <when test="criterion.singleValue" >
|
|
|
66
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
67
|
+ </when>
|
|
|
68
|
+ <when test="criterion.betweenValue" >
|
|
|
69
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
70
|
+ </when>
|
|
|
71
|
+ <when test="criterion.listValue" >
|
|
|
72
|
+ and ${criterion.condition}
|
|
|
73
|
+ <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
|
74
|
+ #{listItem}
|
|
|
75
|
+ </foreach>
|
|
|
76
|
+ </when>
|
|
|
77
|
+ </choose>
|
|
|
78
|
+ </foreach>
|
|
|
79
|
+ </trim>
|
|
|
80
|
+ </if>
|
|
|
81
|
+ </foreach>
|
|
|
82
|
+ </where>
|
|
|
83
|
+ </sql>
|
|
|
84
|
+ <sql id="Base_Column_List" >
|
|
|
85
|
+ id, zid, type, house_id, house_name, warehouse_id, warehouse_name, create_time, org_id,
|
|
|
86
|
+ grain_kind, grain_detail_kind, grain_grade, grain_attribute, grain_annual, grain_producing_area,
|
|
|
87
|
+ price, count, detail_total_price, input_time, state
|
|
|
88
|
+ </sql>
|
|
|
89
|
+ <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
|
|
|
90
|
+ select
|
|
|
91
|
+ <if test="distinct" >
|
|
|
92
|
+ distinct
|
|
|
93
|
+ </if>
|
|
|
94
|
+ <include refid="Base_Column_List" />
|
|
|
95
|
+ from business_store_ware_detail
|
|
|
96
|
+ <if test="_parameter != null" >
|
|
|
97
|
+ <include refid="Example_Where_Clause" />
|
|
|
98
|
+ </if>
|
|
|
99
|
+ <if test="orderByClause != null" >
|
|
|
100
|
+ order by ${orderByClause}
|
|
|
101
|
+ </if>
|
|
|
102
|
+ </select>
|
|
|
103
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
104
|
+ select
|
|
|
105
|
+ <include refid="Base_Column_List" />
|
|
|
106
|
+ from business_store_ware_detail
|
|
|
107
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
108
|
+ </select>
|
|
|
109
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
110
|
+ delete from business_store_ware_detail
|
|
|
111
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
112
|
+ </delete>
|
|
|
113
|
+ <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
|
|
|
114
|
+ delete from business_store_ware_detail
|
|
|
115
|
+ <if test="_parameter != null" >
|
|
|
116
|
+ <include refid="Example_Where_Clause" />
|
|
|
117
|
+ </if>
|
|
|
118
|
+ </delete>
|
|
|
119
|
+ <insert id="insert" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
|
120
|
+ insert into business_store_ware_detail (id, zid, type,
|
|
|
121
|
+ house_id, house_name, warehouse_id,
|
|
|
122
|
+ warehouse_name, create_time, org_id,
|
|
|
123
|
+ grain_kind, grain_detail_kind, grain_grade,
|
|
|
124
|
+ grain_attribute, grain_annual, grain_producing_area,
|
|
|
125
|
+ price, count, detail_total_price,
|
|
|
126
|
+ input_time, state)
|
|
|
127
|
+ values (#{id,jdbcType=INTEGER}, #{zid,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR},
|
|
|
128
|
+ #{houseId,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR}, #{warehouseId,jdbcType=INTEGER},
|
|
|
129
|
+ #{warehouseName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER},
|
|
|
130
|
+ #{grainKind,jdbcType=INTEGER}, #{grainDetailKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER},
|
|
|
131
|
+ #{grainAttribute,jdbcType=INTEGER}, #{grainAnnual,jdbcType=INTEGER}, #{grainProducingArea,jdbcType=INTEGER},
|
|
|
132
|
+ #{price,jdbcType=VARCHAR}, #{count,jdbcType=VARCHAR}, #{detailTotalPrice,jdbcType=VARCHAR},
|
|
|
133
|
+ #{inputTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER})
|
|
|
134
|
+ </insert>
|
|
|
135
|
+ <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
|
136
|
+ insert into business_store_ware_detail
|
|
|
137
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
138
|
+ <if test="id != null" >
|
|
|
139
|
+ id,
|
|
|
140
|
+ </if>
|
|
|
141
|
+ <if test="zid != null" >
|
|
|
142
|
+ zid,
|
|
|
143
|
+ </if>
|
|
|
144
|
+ <if test="type != null" >
|
|
|
145
|
+ type,
|
|
|
146
|
+ </if>
|
|
|
147
|
+ <if test="houseId != null" >
|
|
|
148
|
+ house_id,
|
|
|
149
|
+ </if>
|
|
|
150
|
+ <if test="houseName != null" >
|
|
|
151
|
+ house_name,
|
|
|
152
|
+ </if>
|
|
|
153
|
+ <if test="warehouseId != null" >
|
|
|
154
|
+ warehouse_id,
|
|
|
155
|
+ </if>
|
|
|
156
|
+ <if test="warehouseName != null" >
|
|
|
157
|
+ warehouse_name,
|
|
|
158
|
+ </if>
|
|
|
159
|
+ <if test="createTime != null" >
|
|
|
160
|
+ create_time,
|
|
|
161
|
+ </if>
|
|
|
162
|
+ <if test="orgId != null" >
|
|
|
163
|
+ org_id,
|
|
|
164
|
+ </if>
|
|
|
165
|
+ <if test="grainKind != null" >
|
|
|
166
|
+ grain_kind,
|
|
|
167
|
+ </if>
|
|
|
168
|
+ <if test="grainDetailKind != null" >
|
|
|
169
|
+ grain_detail_kind,
|
|
|
170
|
+ </if>
|
|
|
171
|
+ <if test="grainGrade != null" >
|
|
|
172
|
+ grain_grade,
|
|
|
173
|
+ </if>
|
|
|
174
|
+ <if test="grainAttribute != null" >
|
|
|
175
|
+ grain_attribute,
|
|
|
176
|
+ </if>
|
|
|
177
|
+ <if test="grainAnnual != null" >
|
|
|
178
|
+ grain_annual,
|
|
|
179
|
+ </if>
|
|
|
180
|
+ <if test="grainProducingArea != null" >
|
|
|
181
|
+ grain_producing_area,
|
|
|
182
|
+ </if>
|
|
|
183
|
+ <if test="price != null" >
|
|
|
184
|
+ price,
|
|
|
185
|
+ </if>
|
|
|
186
|
+ <if test="count != null" >
|
|
|
187
|
+ count,
|
|
|
188
|
+ </if>
|
|
|
189
|
+ <if test="detailTotalPrice != null" >
|
|
|
190
|
+ detail_total_price,
|
|
|
191
|
+ </if>
|
|
|
192
|
+ <if test="inputTime != null" >
|
|
|
193
|
+ input_time,
|
|
|
194
|
+ </if>
|
|
|
195
|
+ <if test="state != null" >
|
|
|
196
|
+ state,
|
|
|
197
|
+ </if>
|
|
|
198
|
+ </trim>
|
|
|
199
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
200
|
+ <if test="id != null" >
|
|
|
201
|
+ #{id,jdbcType=INTEGER},
|
|
|
202
|
+ </if>
|
|
|
203
|
+ <if test="zid != null" >
|
|
|
204
|
+ #{zid,jdbcType=INTEGER},
|
|
|
205
|
+ </if>
|
|
|
206
|
+ <if test="type != null" >
|
|
|
207
|
+ #{type,jdbcType=VARCHAR},
|
|
|
208
|
+ </if>
|
|
|
209
|
+ <if test="houseId != null" >
|
|
|
210
|
+ #{houseId,jdbcType=INTEGER},
|
|
|
211
|
+ </if>
|
|
|
212
|
+ <if test="houseName != null" >
|
|
|
213
|
+ #{houseName,jdbcType=VARCHAR},
|
|
|
214
|
+ </if>
|
|
|
215
|
+ <if test="warehouseId != null" >
|
|
|
216
|
+ #{warehouseId,jdbcType=INTEGER},
|
|
|
217
|
+ </if>
|
|
|
218
|
+ <if test="warehouseName != null" >
|
|
|
219
|
+ #{warehouseName,jdbcType=VARCHAR},
|
|
|
220
|
+ </if>
|
|
|
221
|
+ <if test="createTime != null" >
|
|
|
222
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
223
|
+ </if>
|
|
|
224
|
+ <if test="orgId != null" >
|
|
|
225
|
+ #{orgId,jdbcType=INTEGER},
|
|
|
226
|
+ </if>
|
|
|
227
|
+ <if test="grainKind != null" >
|
|
|
228
|
+ #{grainKind,jdbcType=INTEGER},
|
|
|
229
|
+ </if>
|
|
|
230
|
+ <if test="grainDetailKind != null" >
|
|
|
231
|
+ #{grainDetailKind,jdbcType=INTEGER},
|
|
|
232
|
+ </if>
|
|
|
233
|
+ <if test="grainGrade != null" >
|
|
|
234
|
+ #{grainGrade,jdbcType=INTEGER},
|
|
|
235
|
+ </if>
|
|
|
236
|
+ <if test="grainAttribute != null" >
|
|
|
237
|
+ #{grainAttribute,jdbcType=INTEGER},
|
|
|
238
|
+ </if>
|
|
|
239
|
+ <if test="grainAnnual != null" >
|
|
|
240
|
+ #{grainAnnual,jdbcType=INTEGER},
|
|
|
241
|
+ </if>
|
|
|
242
|
+ <if test="grainProducingArea != null" >
|
|
|
243
|
+ #{grainProducingArea,jdbcType=INTEGER},
|
|
|
244
|
+ </if>
|
|
|
245
|
+ <if test="price != null" >
|
|
|
246
|
+ #{price,jdbcType=VARCHAR},
|
|
|
247
|
+ </if>
|
|
|
248
|
+ <if test="count != null" >
|
|
|
249
|
+ #{count,jdbcType=VARCHAR},
|
|
|
250
|
+ </if>
|
|
|
251
|
+ <if test="detailTotalPrice != null" >
|
|
|
252
|
+ #{detailTotalPrice,jdbcType=VARCHAR},
|
|
|
253
|
+ </if>
|
|
|
254
|
+ <if test="inputTime != null" >
|
|
|
255
|
+ #{inputTime,jdbcType=TIMESTAMP},
|
|
|
256
|
+ </if>
|
|
|
257
|
+ <if test="state != null" >
|
|
|
258
|
+ #{state,jdbcType=INTEGER},
|
|
|
259
|
+ </if>
|
|
|
260
|
+ </trim>
|
|
|
261
|
+ </insert>
|
|
|
262
|
+ <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" resultType="java.lang.Integer" >
|
|
|
263
|
+ select count(*) from business_store_ware_detail
|
|
|
264
|
+ <if test="_parameter != null" >
|
|
|
265
|
+ <include refid="Example_Where_Clause" />
|
|
|
266
|
+ </if>
|
|
|
267
|
+ </select>
|
|
|
268
|
+ <update id="updateByExampleSelective" parameterType="map" >
|
|
|
269
|
+ update business_store_ware_detail
|
|
|
270
|
+ <set >
|
|
|
271
|
+ <if test="record.id != null" >
|
|
|
272
|
+ id = #{record.id,jdbcType=INTEGER},
|
|
|
273
|
+ </if>
|
|
|
274
|
+ <if test="record.zid != null" >
|
|
|
275
|
+ zid = #{record.zid,jdbcType=INTEGER},
|
|
|
276
|
+ </if>
|
|
|
277
|
+ <if test="record.type != null" >
|
|
|
278
|
+ type = #{record.type,jdbcType=VARCHAR},
|
|
|
279
|
+ </if>
|
|
|
280
|
+ <if test="record.houseId != null" >
|
|
|
281
|
+ house_id = #{record.houseId,jdbcType=INTEGER},
|
|
|
282
|
+ </if>
|
|
|
283
|
+ <if test="record.houseName != null" >
|
|
|
284
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
285
|
+ </if>
|
|
|
286
|
+ <if test="record.warehouseId != null" >
|
|
|
287
|
+ warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
|
288
|
+ </if>
|
|
|
289
|
+ <if test="record.warehouseName != null" >
|
|
|
290
|
+ warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
|
|
|
291
|
+ </if>
|
|
|
292
|
+ <if test="record.createTime != null" >
|
|
|
293
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
294
|
+ </if>
|
|
|
295
|
+ <if test="record.orgId != null" >
|
|
|
296
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
297
|
+ </if>
|
|
|
298
|
+ <if test="record.grainKind != null" >
|
|
|
299
|
+ grain_kind = #{record.grainKind,jdbcType=INTEGER},
|
|
|
300
|
+ </if>
|
|
|
301
|
+ <if test="record.grainDetailKind != null" >
|
|
|
302
|
+ grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
|
|
|
303
|
+ </if>
|
|
|
304
|
+ <if test="record.grainGrade != null" >
|
|
|
305
|
+ grain_grade = #{record.grainGrade,jdbcType=INTEGER},
|
|
|
306
|
+ </if>
|
|
|
307
|
+ <if test="record.grainAttribute != null" >
|
|
|
308
|
+ grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
|
|
|
309
|
+ </if>
|
|
|
310
|
+ <if test="record.grainAnnual != null" >
|
|
|
311
|
+ grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
|
312
|
+ </if>
|
|
|
313
|
+ <if test="record.grainProducingArea != null" >
|
|
|
314
|
+ grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
|
315
|
+ </if>
|
|
|
316
|
+ <if test="record.price != null" >
|
|
|
317
|
+ price = #{record.price,jdbcType=VARCHAR},
|
|
|
318
|
+ </if>
|
|
|
319
|
+ <if test="record.count != null" >
|
|
|
320
|
+ count = #{record.count,jdbcType=VARCHAR},
|
|
|
321
|
+ </if>
|
|
|
322
|
+ <if test="record.detailTotalPrice != null" >
|
|
|
323
|
+ detail_total_price = #{record.detailTotalPrice,jdbcType=VARCHAR},
|
|
|
324
|
+ </if>
|
|
|
325
|
+ <if test="record.inputTime != null" >
|
|
|
326
|
+ input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
|
327
|
+ </if>
|
|
|
328
|
+ <if test="record.state != null" >
|
|
|
329
|
+ state = #{record.state,jdbcType=INTEGER},
|
|
|
330
|
+ </if>
|
|
|
331
|
+ </set>
|
|
|
332
|
+ <if test="_parameter != null" >
|
|
|
333
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
334
|
+ </if>
|
|
|
335
|
+ </update>
|
|
|
336
|
+ <update id="updateByExample" parameterType="map" >
|
|
|
337
|
+ update business_store_ware_detail
|
|
|
338
|
+ set id = #{record.id,jdbcType=INTEGER},
|
|
|
339
|
+ zid = #{record.zid,jdbcType=INTEGER},
|
|
|
340
|
+ type = #{record.type,jdbcType=VARCHAR},
|
|
|
341
|
+ house_id = #{record.houseId,jdbcType=INTEGER},
|
|
|
342
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
343
|
+ warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
|
344
|
+ warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
|
|
|
345
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
346
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
347
|
+ grain_kind = #{record.grainKind,jdbcType=INTEGER},
|
|
|
348
|
+ grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
|
|
|
349
|
+ grain_grade = #{record.grainGrade,jdbcType=INTEGER},
|
|
|
350
|
+ grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
|
|
|
351
|
+ grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
|
352
|
+ grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
|
353
|
+ price = #{record.price,jdbcType=VARCHAR},
|
|
|
354
|
+ count = #{record.count,jdbcType=VARCHAR},
|
|
|
355
|
+ detail_total_price = #{record.detailTotalPrice,jdbcType=VARCHAR},
|
|
|
356
|
+ input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
|
357
|
+ state = #{record.state,jdbcType=INTEGER}
|
|
|
358
|
+ <if test="_parameter != null" >
|
|
|
359
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
360
|
+ </if>
|
|
|
361
|
+ </update>
|
|
|
362
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
|
363
|
+ update business_store_ware_detail
|
|
|
364
|
+ <set >
|
|
|
365
|
+ <if test="zid != null" >
|
|
|
366
|
+ zid = #{zid,jdbcType=INTEGER},
|
|
|
367
|
+ </if>
|
|
|
368
|
+ <if test="type != null" >
|
|
|
369
|
+ type = #{type,jdbcType=VARCHAR},
|
|
|
370
|
+ </if>
|
|
|
371
|
+ <if test="houseId != null" >
|
|
|
372
|
+ house_id = #{houseId,jdbcType=INTEGER},
|
|
|
373
|
+ </if>
|
|
|
374
|
+ <if test="houseName != null" >
|
|
|
375
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
376
|
+ </if>
|
|
|
377
|
+ <if test="warehouseId != null" >
|
|
|
378
|
+ warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
|
379
|
+ </if>
|
|
|
380
|
+ <if test="warehouseName != null" >
|
|
|
381
|
+ warehouse_name = #{warehouseName,jdbcType=VARCHAR},
|
|
|
382
|
+ </if>
|
|
|
383
|
+ <if test="createTime != null" >
|
|
|
384
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
385
|
+ </if>
|
|
|
386
|
+ <if test="orgId != null" >
|
|
|
387
|
+ org_id = #{orgId,jdbcType=INTEGER},
|
|
|
388
|
+ </if>
|
|
|
389
|
+ <if test="grainKind != null" >
|
|
|
390
|
+ grain_kind = #{grainKind,jdbcType=INTEGER},
|
|
|
391
|
+ </if>
|
|
|
392
|
+ <if test="grainDetailKind != null" >
|
|
|
393
|
+ grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
|
|
|
394
|
+ </if>
|
|
|
395
|
+ <if test="grainGrade != null" >
|
|
|
396
|
+ grain_grade = #{grainGrade,jdbcType=INTEGER},
|
|
|
397
|
+ </if>
|
|
|
398
|
+ <if test="grainAttribute != null" >
|
|
|
399
|
+ grain_attribute = #{grainAttribute,jdbcType=INTEGER},
|
|
|
400
|
+ </if>
|
|
|
401
|
+ <if test="grainAnnual != null" >
|
|
|
402
|
+ grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
|
403
|
+ </if>
|
|
|
404
|
+ <if test="grainProducingArea != null" >
|
|
|
405
|
+ grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
|
406
|
+ </if>
|
|
|
407
|
+ <if test="price != null" >
|
|
|
408
|
+ price = #{price,jdbcType=VARCHAR},
|
|
|
409
|
+ </if>
|
|
|
410
|
+ <if test="count != null" >
|
|
|
411
|
+ count = #{count,jdbcType=VARCHAR},
|
|
|
412
|
+ </if>
|
|
|
413
|
+ <if test="detailTotalPrice != null" >
|
|
|
414
|
+ detail_total_price = #{detailTotalPrice,jdbcType=VARCHAR},
|
|
|
415
|
+ </if>
|
|
|
416
|
+ <if test="inputTime != null" >
|
|
|
417
|
+ input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
|
418
|
+ </if>
|
|
|
419
|
+ <if test="state != null" >
|
|
|
420
|
+ state = #{state,jdbcType=INTEGER},
|
|
|
421
|
+ </if>
|
|
|
422
|
+ </set>
|
|
|
423
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
424
|
+ </update>
|
|
|
425
|
+ <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
|
|
|
426
|
+ update business_store_ware_detail
|
|
|
427
|
+ set zid = #{zid,jdbcType=INTEGER},
|
|
|
428
|
+ type = #{type,jdbcType=VARCHAR},
|
|
|
429
|
+ house_id = #{houseId,jdbcType=INTEGER},
|
|
|
430
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
431
|
+ warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
|
432
|
+ warehouse_name = #{warehouseName,jdbcType=VARCHAR},
|
|
|
433
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
434
|
+ org_id = #{orgId,jdbcType=INTEGER},
|
|
|
435
|
+ grain_kind = #{grainKind,jdbcType=INTEGER},
|
|
|
436
|
+ grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
|
|
|
437
|
+ grain_grade = #{grainGrade,jdbcType=INTEGER},
|
|
|
438
|
+ grain_attribute = #{grainAttribute,jdbcType=INTEGER},
|
|
|
439
|
+ grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
|
440
|
+ grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
|
441
|
+ price = #{price,jdbcType=VARCHAR},
|
|
|
442
|
+ count = #{count,jdbcType=VARCHAR},
|
|
|
443
|
+ detail_total_price = #{detailTotalPrice,jdbcType=VARCHAR},
|
|
|
444
|
+ input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
|
445
|
+ state = #{state,jdbcType=INTEGER}
|
|
|
446
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
447
|
+ </update>
|
|
435
|
448
|
</mapper>
|