|
|
@@ -2,35 +2,36 @@
|
|
2
|
2
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
3
|
3
|
<mapper namespace="com.chinaitop.depot.storage.mapper.StorageKeepertransferDetailsMapper">
|
|
4
|
4
|
<resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageKeepertransferDetails">
|
|
5
|
|
- <id column="id" jdbcType="INTEGER" property="id" />
|
|
6
|
|
- <result column="kt_id" jdbcType="INTEGER" property="ktId" />
|
|
7
|
|
- <result column="storehouse_id" jdbcType="INTEGER" property="storehouseId" />
|
|
8
|
|
- <result column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
|
|
9
|
|
- <result column="pz" jdbcType="INTEGER" property="pz" />
|
|
10
|
|
- <result column="kcsl" jdbcType="DOUBLE" property="kcsl" />
|
|
11
|
|
- <result column="quality" jdbcType="INTEGER" property="quality" />
|
|
12
|
|
- <result column="food_status" jdbcType="INTEGER" property="foodStatus" />
|
|
13
|
|
- <result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
|
|
|
5
|
+ <id column="id" property="id" jdbcType="INTEGER" />
|
|
|
6
|
+ <result column="kt_id" property="ktId" jdbcType="INTEGER" />
|
|
|
7
|
+ <result column="storehouse_id" property="storehouseId" jdbcType="VARCHAR" />
|
|
|
8
|
+ <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
|
|
|
9
|
+ <result column="pz" property="pz" jdbcType="INTEGER" />
|
|
|
10
|
+ <result column="kcsl" property="kcsl" jdbcType="DOUBLE" />
|
|
|
11
|
+ <result column="quality" property="quality" jdbcType="INTEGER" />
|
|
|
12
|
+ <result column="food_status" property="foodStatus" jdbcType="INTEGER" />
|
|
|
13
|
+ <result column="warehouse_name" property="warehouseName" jdbcType="VARCHAR" />
|
|
|
14
|
+ <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
|
14
|
15
|
</resultMap>
|
|
15
|
|
- <sql id="Example_Where_Clause">
|
|
16
|
|
- <where>
|
|
17
|
|
- <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
18
|
|
- <if test="criteria.valid">
|
|
19
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
20
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
21
|
|
- <choose>
|
|
22
|
|
- <when test="criterion.noValue">
|
|
|
16
|
+ <sql id="Example_Where_Clause" >
|
|
|
17
|
+ <where >
|
|
|
18
|
+ <foreach collection="oredCriteria" item="criteria" separator="or" >
|
|
|
19
|
+ <if test="criteria.valid" >
|
|
|
20
|
+ <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
|
21
|
+ <foreach collection="criteria.criteria" item="criterion" >
|
|
|
22
|
+ <choose >
|
|
|
23
|
+ <when test="criterion.noValue" >
|
|
23
|
24
|
and ${criterion.condition}
|
|
24
|
25
|
</when>
|
|
25
|
|
- <when test="criterion.singleValue">
|
|
|
26
|
+ <when test="criterion.singleValue" >
|
|
26
|
27
|
and ${criterion.condition} #{criterion.value}
|
|
27
|
28
|
</when>
|
|
28
|
|
- <when test="criterion.betweenValue">
|
|
|
29
|
+ <when test="criterion.betweenValue" >
|
|
29
|
30
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
30
|
31
|
</when>
|
|
31
|
|
- <when test="criterion.listValue">
|
|
|
32
|
+ <when test="criterion.listValue" >
|
|
32
|
33
|
and ${criterion.condition}
|
|
33
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
34
|
+ <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
34
|
35
|
#{listItem}
|
|
35
|
36
|
</foreach>
|
|
36
|
37
|
</when>
|
|
|
@@ -41,25 +42,25 @@
|
|
41
|
42
|
</foreach>
|
|
42
|
43
|
</where>
|
|
43
|
44
|
</sql>
|
|
44
|
|
- <sql id="Update_By_Example_Where_Clause">
|
|
45
|
|
- <where>
|
|
46
|
|
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
47
|
|
- <if test="criteria.valid">
|
|
48
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
49
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
50
|
|
- <choose>
|
|
51
|
|
- <when test="criterion.noValue">
|
|
|
45
|
+ <sql id="Update_By_Example_Where_Clause" >
|
|
|
46
|
+ <where >
|
|
|
47
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
|
|
48
|
+ <if test="criteria.valid" >
|
|
|
49
|
+ <trim prefix="(" suffix=")" prefixOverrides="and" >
|
|
|
50
|
+ <foreach collection="criteria.criteria" item="criterion" >
|
|
|
51
|
+ <choose >
|
|
|
52
|
+ <when test="criterion.noValue" >
|
|
52
|
53
|
and ${criterion.condition}
|
|
53
|
54
|
</when>
|
|
54
|
|
- <when test="criterion.singleValue">
|
|
|
55
|
+ <when test="criterion.singleValue" >
|
|
55
|
56
|
and ${criterion.condition} #{criterion.value}
|
|
56
|
57
|
</when>
|
|
57
|
|
- <when test="criterion.betweenValue">
|
|
|
58
|
+ <when test="criterion.betweenValue" >
|
|
58
|
59
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
59
|
60
|
</when>
|
|
60
|
|
- <when test="criterion.listValue">
|
|
|
61
|
+ <when test="criterion.listValue" >
|
|
61
|
62
|
and ${criterion.condition}
|
|
62
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
63
|
+ <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
63
|
64
|
#{listItem}
|
|
64
|
65
|
</foreach>
|
|
65
|
66
|
</when>
|
|
|
@@ -70,206 +71,221 @@
|
|
70
|
71
|
</foreach>
|
|
71
|
72
|
</where>
|
|
72
|
73
|
</sql>
|
|
73
|
|
- <sql id="Base_Column_List">
|
|
74
|
|
- id, kt_id, storehouse_id, warehouse_id, pz, kcsl, quality, food_status, warehouse_name
|
|
|
74
|
+ <sql id="Base_Column_List" >
|
|
|
75
|
+ id, kt_id, storehouse_id, warehouse_id, pz, kcsl, quality, food_status, warehouse_name,
|
|
|
76
|
+ updatetime
|
|
75
|
77
|
</sql>
|
|
76
|
|
- <select id="selectByExample" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetailsExample" resultMap="BaseResultMap">
|
|
|
78
|
+ <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetailsExample" >
|
|
77
|
79
|
select
|
|
78
|
|
- <if test="distinct">
|
|
|
80
|
+ <if test="distinct" >
|
|
79
|
81
|
distinct
|
|
80
|
82
|
</if>
|
|
81
|
83
|
<include refid="Base_Column_List" />
|
|
82
|
84
|
from storage_keepertransfer_details
|
|
83
|
|
- <if test="_parameter != null">
|
|
|
85
|
+ <if test="_parameter != null" >
|
|
84
|
86
|
<include refid="Example_Where_Clause" />
|
|
85
|
87
|
</if>
|
|
86
|
|
- <if test="orderByClause != null">
|
|
|
88
|
+ <if test="orderByClause != null" >
|
|
87
|
89
|
order by ${orderByClause}
|
|
88
|
90
|
</if>
|
|
89
|
91
|
</select>
|
|
90
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
91
|
|
- select
|
|
|
92
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
93
|
+ select
|
|
92
|
94
|
<include refid="Base_Column_List" />
|
|
93
|
95
|
from storage_keepertransfer_details
|
|
94
|
96
|
where id = #{id,jdbcType=INTEGER}
|
|
95
|
97
|
</select>
|
|
96
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
98
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
97
|
99
|
delete from storage_keepertransfer_details
|
|
98
|
100
|
where id = #{id,jdbcType=INTEGER}
|
|
99
|
101
|
</delete>
|
|
100
|
|
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetailsExample">
|
|
|
102
|
+ <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetailsExample" >
|
|
101
|
103
|
delete from storage_keepertransfer_details
|
|
102
|
|
- <if test="_parameter != null">
|
|
|
104
|
+ <if test="_parameter != null" >
|
|
103
|
105
|
<include refid="Example_Where_Clause" />
|
|
104
|
106
|
</if>
|
|
105
|
107
|
</delete>
|
|
106
|
|
- <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails">
|
|
107
|
|
- insert into storage_keepertransfer_details (id, kt_id, storehouse_id,
|
|
108
|
|
- warehouse_id, pz, kcsl,
|
|
109
|
|
- quality, food_status, warehouse_name
|
|
110
|
|
- )
|
|
111
|
|
- values (#{id,jdbcType=INTEGER}, #{ktId,jdbcType=INTEGER}, #{storehouseId,jdbcType=INTEGER},
|
|
112
|
|
- #{warehouseId,jdbcType=INTEGER}, #{pz,jdbcType=INTEGER}, #{kcsl,jdbcType=DOUBLE},
|
|
113
|
|
- #{quality,jdbcType=INTEGER}, #{foodStatus,jdbcType=INTEGER}, #{warehouseName,jdbcType=VARCHAR}
|
|
114
|
|
- )
|
|
|
108
|
+ <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails" >
|
|
|
109
|
+ insert into storage_keepertransfer_details (id, kt_id, storehouse_id,
|
|
|
110
|
+ warehouse_id, pz, kcsl,
|
|
|
111
|
+ quality, food_status, warehouse_name,
|
|
|
112
|
+ updatetime)
|
|
|
113
|
+ values (#{id,jdbcType=INTEGER}, #{ktId,jdbcType=INTEGER}, #{storehouseId,jdbcType=VARCHAR},
|
|
|
114
|
+ #{warehouseId,jdbcType=INTEGER}, #{pz,jdbcType=INTEGER}, #{kcsl,jdbcType=DOUBLE},
|
|
|
115
|
+ #{quality,jdbcType=INTEGER}, #{foodStatus,jdbcType=INTEGER}, #{warehouseName,jdbcType=VARCHAR},
|
|
|
116
|
+ #{updatetime,jdbcType=TIMESTAMP})
|
|
115
|
117
|
</insert>
|
|
116
|
|
- <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails">
|
|
|
118
|
+ <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails" >
|
|
117
|
119
|
insert into storage_keepertransfer_details
|
|
118
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
119
|
|
- <if test="id != null">
|
|
|
120
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
121
|
+ <if test="id != null" >
|
|
120
|
122
|
id,
|
|
121
|
123
|
</if>
|
|
122
|
|
- <if test="ktId != null">
|
|
|
124
|
+ <if test="ktId != null" >
|
|
123
|
125
|
kt_id,
|
|
124
|
126
|
</if>
|
|
125
|
|
- <if test="storehouseId != null">
|
|
|
127
|
+ <if test="storehouseId != null" >
|
|
126
|
128
|
storehouse_id,
|
|
127
|
129
|
</if>
|
|
128
|
|
- <if test="warehouseId != null">
|
|
|
130
|
+ <if test="warehouseId != null" >
|
|
129
|
131
|
warehouse_id,
|
|
130
|
132
|
</if>
|
|
131
|
|
- <if test="pz != null">
|
|
|
133
|
+ <if test="pz != null" >
|
|
132
|
134
|
pz,
|
|
133
|
135
|
</if>
|
|
134
|
|
- <if test="kcsl != null">
|
|
|
136
|
+ <if test="kcsl != null" >
|
|
135
|
137
|
kcsl,
|
|
136
|
138
|
</if>
|
|
137
|
|
- <if test="quality != null">
|
|
|
139
|
+ <if test="quality != null" >
|
|
138
|
140
|
quality,
|
|
139
|
141
|
</if>
|
|
140
|
|
- <if test="foodStatus != null">
|
|
|
142
|
+ <if test="foodStatus != null" >
|
|
141
|
143
|
food_status,
|
|
142
|
144
|
</if>
|
|
143
|
|
- <if test="warehouseName != null">
|
|
|
145
|
+ <if test="warehouseName != null" >
|
|
144
|
146
|
warehouse_name,
|
|
145
|
147
|
</if>
|
|
|
148
|
+ <if test="updatetime != null" >
|
|
|
149
|
+ updatetime,
|
|
|
150
|
+ </if>
|
|
146
|
151
|
</trim>
|
|
147
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
148
|
|
- <if test="id != null">
|
|
|
152
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
153
|
+ <if test="id != null" >
|
|
149
|
154
|
#{id,jdbcType=INTEGER},
|
|
150
|
155
|
</if>
|
|
151
|
|
- <if test="ktId != null">
|
|
|
156
|
+ <if test="ktId != null" >
|
|
152
|
157
|
#{ktId,jdbcType=INTEGER},
|
|
153
|
158
|
</if>
|
|
154
|
|
- <if test="storehouseId != null">
|
|
155
|
|
- #{storehouseId,jdbcType=INTEGER},
|
|
|
159
|
+ <if test="storehouseId != null" >
|
|
|
160
|
+ #{storehouseId,jdbcType=VARCHAR},
|
|
156
|
161
|
</if>
|
|
157
|
|
- <if test="warehouseId != null">
|
|
|
162
|
+ <if test="warehouseId != null" >
|
|
158
|
163
|
#{warehouseId,jdbcType=INTEGER},
|
|
159
|
164
|
</if>
|
|
160
|
|
- <if test="pz != null">
|
|
|
165
|
+ <if test="pz != null" >
|
|
161
|
166
|
#{pz,jdbcType=INTEGER},
|
|
162
|
167
|
</if>
|
|
163
|
|
- <if test="kcsl != null">
|
|
|
168
|
+ <if test="kcsl != null" >
|
|
164
|
169
|
#{kcsl,jdbcType=DOUBLE},
|
|
165
|
170
|
</if>
|
|
166
|
|
- <if test="quality != null">
|
|
|
171
|
+ <if test="quality != null" >
|
|
167
|
172
|
#{quality,jdbcType=INTEGER},
|
|
168
|
173
|
</if>
|
|
169
|
|
- <if test="foodStatus != null">
|
|
|
174
|
+ <if test="foodStatus != null" >
|
|
170
|
175
|
#{foodStatus,jdbcType=INTEGER},
|
|
171
|
176
|
</if>
|
|
172
|
|
- <if test="warehouseName != null">
|
|
|
177
|
+ <if test="warehouseName != null" >
|
|
173
|
178
|
#{warehouseName,jdbcType=VARCHAR},
|
|
174
|
179
|
</if>
|
|
|
180
|
+ <if test="updatetime != null" >
|
|
|
181
|
+ #{updatetime,jdbcType=TIMESTAMP},
|
|
|
182
|
+ </if>
|
|
175
|
183
|
</trim>
|
|
176
|
184
|
</insert>
|
|
177
|
|
- <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetailsExample" resultType="java.lang.Integer">
|
|
|
185
|
+ <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetailsExample" resultType="java.lang.Integer" >
|
|
178
|
186
|
select count(*) from storage_keepertransfer_details
|
|
179
|
|
- <if test="_parameter != null">
|
|
|
187
|
+ <if test="_parameter != null" >
|
|
180
|
188
|
<include refid="Example_Where_Clause" />
|
|
181
|
189
|
</if>
|
|
182
|
190
|
</select>
|
|
183
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
|
191
|
+ <update id="updateByExampleSelective" parameterType="map" >
|
|
184
|
192
|
update storage_keepertransfer_details
|
|
185
|
|
- <set>
|
|
186
|
|
- <if test="record.id != null">
|
|
|
193
|
+ <set >
|
|
|
194
|
+ <if test="record.id != null" >
|
|
187
|
195
|
id = #{record.id,jdbcType=INTEGER},
|
|
188
|
196
|
</if>
|
|
189
|
|
- <if test="record.ktId != null">
|
|
|
197
|
+ <if test="record.ktId != null" >
|
|
190
|
198
|
kt_id = #{record.ktId,jdbcType=INTEGER},
|
|
191
|
199
|
</if>
|
|
192
|
|
- <if test="record.storehouseId != null">
|
|
193
|
|
- storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
|
|
|
200
|
+ <if test="record.storehouseId != null" >
|
|
|
201
|
+ storehouse_id = #{record.storehouseId,jdbcType=VARCHAR},
|
|
194
|
202
|
</if>
|
|
195
|
|
- <if test="record.warehouseId != null">
|
|
|
203
|
+ <if test="record.warehouseId != null" >
|
|
196
|
204
|
warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
197
|
205
|
</if>
|
|
198
|
|
- <if test="record.pz != null">
|
|
|
206
|
+ <if test="record.pz != null" >
|
|
199
|
207
|
pz = #{record.pz,jdbcType=INTEGER},
|
|
200
|
208
|
</if>
|
|
201
|
|
- <if test="record.kcsl != null">
|
|
|
209
|
+ <if test="record.kcsl != null" >
|
|
202
|
210
|
kcsl = #{record.kcsl,jdbcType=DOUBLE},
|
|
203
|
211
|
</if>
|
|
204
|
|
- <if test="record.quality != null">
|
|
|
212
|
+ <if test="record.quality != null" >
|
|
205
|
213
|
quality = #{record.quality,jdbcType=INTEGER},
|
|
206
|
214
|
</if>
|
|
207
|
|
- <if test="record.foodStatus != null">
|
|
|
215
|
+ <if test="record.foodStatus != null" >
|
|
208
|
216
|
food_status = #{record.foodStatus,jdbcType=INTEGER},
|
|
209
|
217
|
</if>
|
|
210
|
|
- <if test="record.warehouseName != null">
|
|
|
218
|
+ <if test="record.warehouseName != null" >
|
|
211
|
219
|
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
|
|
212
|
220
|
</if>
|
|
|
221
|
+ <if test="record.updatetime != null" >
|
|
|
222
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
223
|
+ </if>
|
|
213
|
224
|
</set>
|
|
214
|
|
- <if test="_parameter != null">
|
|
|
225
|
+ <if test="_parameter != null" >
|
|
215
|
226
|
<include refid="Update_By_Example_Where_Clause" />
|
|
216
|
227
|
</if>
|
|
217
|
228
|
</update>
|
|
218
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
229
|
+ <update id="updateByExample" parameterType="map" >
|
|
219
|
230
|
update storage_keepertransfer_details
|
|
220
|
231
|
set id = #{record.id,jdbcType=INTEGER},
|
|
221
|
|
- kt_id = #{record.ktId,jdbcType=INTEGER},
|
|
222
|
|
- storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
|
|
223
|
|
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
224
|
|
- pz = #{record.pz,jdbcType=INTEGER},
|
|
225
|
|
- kcsl = #{record.kcsl,jdbcType=DOUBLE},
|
|
226
|
|
- quality = #{record.quality,jdbcType=INTEGER},
|
|
227
|
|
- food_status = #{record.foodStatus,jdbcType=INTEGER},
|
|
228
|
|
- warehouse_name = #{record.warehouseName,jdbcType=VARCHAR}
|
|
229
|
|
- <if test="_parameter != null">
|
|
|
232
|
+ kt_id = #{record.ktId,jdbcType=INTEGER},
|
|
|
233
|
+ storehouse_id = #{record.storehouseId,jdbcType=VARCHAR},
|
|
|
234
|
+ warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
|
|
|
235
|
+ pz = #{record.pz,jdbcType=INTEGER},
|
|
|
236
|
+ kcsl = #{record.kcsl,jdbcType=DOUBLE},
|
|
|
237
|
+ quality = #{record.quality,jdbcType=INTEGER},
|
|
|
238
|
+ food_status = #{record.foodStatus,jdbcType=INTEGER},
|
|
|
239
|
+ warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
|
|
|
240
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
|
|
|
241
|
+ <if test="_parameter != null" >
|
|
230
|
242
|
<include refid="Update_By_Example_Where_Clause" />
|
|
231
|
243
|
</if>
|
|
232
|
244
|
</update>
|
|
233
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails">
|
|
|
245
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails" >
|
|
234
|
246
|
update storage_keepertransfer_details
|
|
235
|
|
- <set>
|
|
236
|
|
- <if test="ktId != null">
|
|
|
247
|
+ <set >
|
|
|
248
|
+ <if test="ktId != null" >
|
|
237
|
249
|
kt_id = #{ktId,jdbcType=INTEGER},
|
|
238
|
250
|
</if>
|
|
239
|
|
- <if test="storehouseId != null">
|
|
240
|
|
- storehouse_id = #{storehouseId,jdbcType=INTEGER},
|
|
|
251
|
+ <if test="storehouseId != null" >
|
|
|
252
|
+ storehouse_id = #{storehouseId,jdbcType=VARCHAR},
|
|
241
|
253
|
</if>
|
|
242
|
|
- <if test="warehouseId != null">
|
|
|
254
|
+ <if test="warehouseId != null" >
|
|
243
|
255
|
warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
244
|
256
|
</if>
|
|
245
|
|
- <if test="pz != null">
|
|
|
257
|
+ <if test="pz != null" >
|
|
246
|
258
|
pz = #{pz,jdbcType=INTEGER},
|
|
247
|
259
|
</if>
|
|
248
|
|
- <if test="kcsl != null">
|
|
|
260
|
+ <if test="kcsl != null" >
|
|
249
|
261
|
kcsl = #{kcsl,jdbcType=DOUBLE},
|
|
250
|
262
|
</if>
|
|
251
|
|
- <if test="quality != null">
|
|
|
263
|
+ <if test="quality != null" >
|
|
252
|
264
|
quality = #{quality,jdbcType=INTEGER},
|
|
253
|
265
|
</if>
|
|
254
|
|
- <if test="foodStatus != null">
|
|
|
266
|
+ <if test="foodStatus != null" >
|
|
255
|
267
|
food_status = #{foodStatus,jdbcType=INTEGER},
|
|
256
|
268
|
</if>
|
|
257
|
|
- <if test="warehouseName != null">
|
|
|
269
|
+ <if test="warehouseName != null" >
|
|
258
|
270
|
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
|
|
259
|
271
|
</if>
|
|
|
272
|
+ <if test="updatetime != null" >
|
|
|
273
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
274
|
+ </if>
|
|
260
|
275
|
</set>
|
|
261
|
276
|
where id = #{id,jdbcType=INTEGER}
|
|
262
|
277
|
</update>
|
|
263
|
|
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails">
|
|
|
278
|
+ <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageKeepertransferDetails" >
|
|
264
|
279
|
update storage_keepertransfer_details
|
|
265
|
280
|
set kt_id = #{ktId,jdbcType=INTEGER},
|
|
266
|
|
- storehouse_id = #{storehouseId,jdbcType=INTEGER},
|
|
|
281
|
+ storehouse_id = #{storehouseId,jdbcType=VARCHAR},
|
|
267
|
282
|
warehouse_id = #{warehouseId,jdbcType=INTEGER},
|
|
268
|
283
|
pz = #{pz,jdbcType=INTEGER},
|
|
269
|
284
|
kcsl = #{kcsl,jdbcType=DOUBLE},
|
|
270
|
285
|
quality = #{quality,jdbcType=INTEGER},
|
|
271
|
286
|
food_status = #{foodStatus,jdbcType=INTEGER},
|
|
272
|
|
- warehouse_name = #{warehouseName,jdbcType=VARCHAR}
|
|
|
287
|
+ warehouse_name = #{warehouseName,jdbcType=VARCHAR},
|
|
|
288
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
|
273
|
289
|
where id = #{id,jdbcType=INTEGER}
|
|
274
|
290
|
</update>
|
|
275
|
291
|
</mapper>
|