|
|
@@ -128,6 +128,16 @@
|
|
128
|
128
|
#{grainVarietyId,jdbcType=INTEGER}, #{grainNatureId,jdbcType=INTEGER}, #{quantity,jdbcType=DECIMAL},
|
|
129
|
129
|
#{productPeriod,jdbcType=INTEGER}, #{planQuantity,jdbcType=DECIMAL})
|
|
130
|
130
|
</insert>
|
|
|
131
|
+ <insert id="insertSelective1" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.rp.model.BusinessRpInbound" >
|
|
|
132
|
+ insert into business_rp_inbound (id, createdate, updatename,
|
|
|
133
|
+ updatedate, rp_report_id, org_id,
|
|
|
134
|
+ grain_variety_id, grain_nature_id, quantity,
|
|
|
135
|
+ product_period, plan_quantity)
|
|
|
136
|
+ values (#{id,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{updatename,jdbcType=VARCHAR},
|
|
|
137
|
+ #{updatedate,jdbcType=TIMESTAMP}, #{rpReportId,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER},
|
|
|
138
|
+ #{grainVarietyId,jdbcType=INTEGER}, #{grainNatureId,jdbcType=INTEGER}, #{sealingQuantity,jdbcType=DECIMAL},
|
|
|
139
|
+ #{productPeriod,jdbcType=INTEGER}, #{planQuantity,jdbcType=DECIMAL})
|
|
|
140
|
+ </insert>
|
|
131
|
141
|
<insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.rp.model.BusinessRpInbound" >
|
|
132
|
142
|
insert into business_rp_inbound
|
|
133
|
143
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
@@ -158,9 +168,9 @@
|
|
158
|
168
|
<if test="quantity != null" >
|
|
159
|
169
|
quantity,
|
|
160
|
170
|
</if>
|
|
161
|
|
-
|
|
|
171
|
+ <if test="storagePeriod != null" >
|
|
162
|
172
|
product_period,
|
|
163
|
|
-
|
|
|
173
|
+ </if>
|
|
164
|
174
|
<if test="planQuantity != null" >
|
|
165
|
175
|
plan_quantity,
|
|
166
|
176
|
</if>
|
|
|
@@ -190,12 +200,12 @@
|
|
190
|
200
|
<if test="grainNatureId != null" >
|
|
191
|
201
|
#{grainNatureId,jdbcType=INTEGER},
|
|
192
|
202
|
</if>
|
|
193
|
|
-
|
|
194
|
|
- #{sealingQuantity,jdbcType=DECIMAL},
|
|
195
|
|
-
|
|
196
|
|
-
|
|
197
|
|
- #{storagePeriod,jdbcType=INTEGER},
|
|
198
|
|
-
|
|
|
203
|
+ <if test="grainNatureId != null" >
|
|
|
204
|
+ #{quantity,jdbcType=DECIMAL},
|
|
|
205
|
+ </if>
|
|
|
206
|
+ <if test="productPeriod != null" >
|
|
|
207
|
+ #{productPeriod,jdbcType=INTEGER},
|
|
|
208
|
+ </if>
|
|
199
|
209
|
<if test="planQuantity != null" >
|
|
200
|
210
|
#{planQuantity,jdbcType=DECIMAL},
|
|
201
|
211
|
</if>
|