|
|
@@ -27,6 +27,7 @@
|
|
27
|
27
|
<result column="ywlx" jdbcType="VARCHAR" property="ywlx" />
|
|
28
|
28
|
<result column="cjsj" jdbcType="TIMESTAMP" property="cjsj" />
|
|
29
|
29
|
<result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
|
|
|
30
|
+ <result column="ylorcpl" jdbcType="VARCHAR" property="ylorcpl" />
|
|
30
|
31
|
</resultMap>
|
|
31
|
32
|
<sql id="Example_Where_Clause">
|
|
32
|
33
|
<where>
|
|
|
@@ -89,7 +90,7 @@
|
|
89
|
90
|
<sql id="Base_Column_List">
|
|
90
|
91
|
id, org_id, jznd, jzyf, jzzy, lyxz, xm_zcsl, xm_srsl, xm_kcsl, dg_zcsl, dg_srsl,
|
|
91
|
92
|
dg_kcsl, ddyy_zcsl, ddyy_srsl, ddyy_kcsl, xj, jzr, jzsj, shr, shsj, data_status,
|
|
92
|
|
- data_type, ywlx, cjsj, updatetime
|
|
|
93
|
+ data_type, ywlx, cjsj, updatetime, ylorcpl
|
|
93
|
94
|
</sql>
|
|
94
|
95
|
<select id="selectByExample" parameterType="com.chinaitop.depot.keeperAccount.model.StorageBgzzExample" resultMap="BaseResultMap">
|
|
95
|
96
|
select
|
|
|
@@ -129,7 +130,7 @@
|
|
129
|
130
|
ddyy_srsl, ddyy_kcsl, xj,
|
|
130
|
131
|
jzr, jzsj, shr, shsj,
|
|
131
|
132
|
data_status, data_type, ywlx,
|
|
132
|
|
- cjsj, updatetime)
|
|
|
133
|
+ cjsj, updatetime, ylorcpl)
|
|
133
|
134
|
values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{jznd,jdbcType=VARCHAR},
|
|
134
|
135
|
#{jzyf,jdbcType=VARCHAR}, #{jzzy,jdbcType=VARCHAR}, #{lyxz,jdbcType=INTEGER}, #{xmZcsl,jdbcType=DECIMAL},
|
|
135
|
136
|
#{xmSrsl,jdbcType=DECIMAL}, #{xmKcsl,jdbcType=DECIMAL}, #{dgZcsl,jdbcType=DECIMAL},
|
|
|
@@ -137,7 +138,7 @@
|
|
137
|
138
|
#{ddyySrsl,jdbcType=DECIMAL}, #{ddyyKcsl,jdbcType=DECIMAL}, #{xj,jdbcType=DECIMAL},
|
|
138
|
139
|
#{jzr,jdbcType=VARCHAR}, #{jzsj,jdbcType=TIMESTAMP}, #{shr,jdbcType=VARCHAR}, #{shsj,jdbcType=TIMESTAMP},
|
|
139
|
140
|
#{dataStatus,jdbcType=VARCHAR}, #{dataType,jdbcType=VARCHAR}, #{ywlx,jdbcType=VARCHAR},
|
|
140
|
|
- #{cjsj,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP})
|
|
|
141
|
+ #{cjsj,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, #{ylorcpl,jdbcType=VARCHAR})
|
|
141
|
142
|
</insert>
|
|
142
|
143
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.keeperAccount.model.StorageBgzz">
|
|
143
|
144
|
insert into storage_bgzz
|
|
|
@@ -217,6 +218,9 @@
|
|
217
|
218
|
<if test="updatetime != null">
|
|
218
|
219
|
updatetime,
|
|
219
|
220
|
</if>
|
|
|
221
|
+ <if test="ylorcpl != null">
|
|
|
222
|
+ ylorcpl,
|
|
|
223
|
+ </if>
|
|
220
|
224
|
</trim>
|
|
221
|
225
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
222
|
226
|
<if test="id != null">
|
|
|
@@ -294,6 +298,9 @@
|
|
294
|
298
|
<if test="updatetime != null">
|
|
295
|
299
|
#{updatetime,jdbcType=TIMESTAMP},
|
|
296
|
300
|
</if>
|
|
|
301
|
+ <if test="ylorcpl != null">
|
|
|
302
|
+ #{ylorcpl,jdbcType=VARCHAR},
|
|
|
303
|
+ </if>
|
|
297
|
304
|
</trim>
|
|
298
|
305
|
</insert>
|
|
299
|
306
|
<select id="countByExample" parameterType="com.chinaitop.depot.keeperAccount.model.StorageBgzzExample" resultType="java.lang.Integer">
|
|
|
@@ -380,6 +387,9 @@
|
|
380
|
387
|
<if test="record.updatetime != null">
|
|
381
|
388
|
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
382
|
389
|
</if>
|
|
|
390
|
+ <if test="record.ylorcpl != null">
|
|
|
391
|
+ ylorcpl = #{record.ylorcpl,jdbcType=VARCHAR},
|
|
|
392
|
+ </if>
|
|
383
|
393
|
</set>
|
|
384
|
394
|
<if test="_parameter != null">
|
|
385
|
395
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -411,7 +421,8 @@
|
|
411
|
421
|
data_type = #{record.dataType,jdbcType=VARCHAR},
|
|
412
|
422
|
ywlx = #{record.ywlx,jdbcType=VARCHAR},
|
|
413
|
423
|
cjsj = #{record.cjsj,jdbcType=TIMESTAMP},
|
|
414
|
|
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
|
|
|
424
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
425
|
+ ylorcpl = #{record.ylorcpl,jdbcType=VARCHAR}
|
|
415
|
426
|
<if test="_parameter != null">
|
|
416
|
427
|
<include refid="Update_By_Example_Where_Clause" />
|
|
417
|
428
|
</if>
|
|
|
@@ -491,6 +502,9 @@
|
|
491
|
502
|
<if test="updatetime != null">
|
|
492
|
503
|
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
493
|
504
|
</if>
|
|
|
505
|
+ <if test="ylorcpl != null">
|
|
|
506
|
+ ylorcpl = #{ylorcpl,jdbcType=VARCHAR},
|
|
|
507
|
+ </if>
|
|
494
|
508
|
</set>
|
|
495
|
509
|
where id = #{id,jdbcType=VARCHAR}
|
|
496
|
510
|
</update>
|
|
|
@@ -519,7 +533,8 @@
|
|
519
|
533
|
data_type = #{dataType,jdbcType=VARCHAR},
|
|
520
|
534
|
ywlx = #{ywlx,jdbcType=VARCHAR},
|
|
521
|
535
|
cjsj = #{cjsj,jdbcType=TIMESTAMP},
|
|
522
|
|
- updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
|
|
536
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
537
|
+ ylorcpl = #{ylorcpl,jdbcType=VARCHAR}
|
|
523
|
538
|
where id = #{id,jdbcType=VARCHAR}
|
|
524
|
539
|
</update>
|
|
525
|
540
|
<!-- 查询一种摘要在某个月的库存数量 -->
|
|
|
@@ -586,6 +601,7 @@
|
|
586
|
601
|
and org_id=#{orgId,jdbcType=INTEGER}
|
|
587
|
602
|
and lyxz=#{lyxz,jdbcType=INTEGER}
|
|
588
|
603
|
and jznd=#{jznd,jdbcType=VARCHAR}
|
|
|
604
|
+ and ylorcpl=#{ylorcpl,jdbcType=VARCHAR}
|
|
589
|
605
|
group by org_id,jznd,lyxz
|
|
590
|
606
|
) a
|
|
591
|
607
|
left join (
|
|
|
@@ -597,6 +613,7 @@
|
|
597
|
613
|
and org_id=#{orgId,jdbcType=INTEGER}
|
|
598
|
614
|
and lyxz=#{lyxz,jdbcType=INTEGER}
|
|
599
|
615
|
and jznd=#{jznd,jdbcType=VARCHAR}
|
|
|
616
|
+ and ylorcpl=#{ylorcpl,jdbcType=VARCHAR}
|
|
600
|
617
|
) b on b.jznd=a.jznd and b.org_id=a.org_id
|
|
601
|
618
|
left join (
|
|
602
|
619
|
select
|
|
|
@@ -606,6 +623,7 @@
|
|
606
|
623
|
and org_id=#{orgId,jdbcType=INTEGER}
|
|
607
|
624
|
and lyxz=#{lyxz,jdbcType=INTEGER}
|
|
608
|
625
|
and jznd=#{jznd,jdbcType=VARCHAR}
|
|
|
626
|
+ and ylorcpl=#{ylorcpl,jdbcType=VARCHAR}
|
|
609
|
627
|
) c on c.org_id=a.org_id and c.jznd=a.jznd
|
|
610
|
628
|
left join (
|
|
611
|
629
|
select
|
|
|
@@ -616,6 +634,7 @@
|
|
616
|
634
|
and org_id=#{orgId,jdbcType=INTEGER}
|
|
617
|
635
|
and lyxz=#{lyxz,jdbcType=INTEGER}
|
|
618
|
636
|
and jznd=#{jznd,jdbcType=VARCHAR}
|
|
|
637
|
+ and ylorcpl=#{ylorcpl,jdbcType=VARCHAR}
|
|
619
|
638
|
group by org_id,jznd,lyxz
|
|
620
|
639
|
) d on d.org_id=a.org_id and d.jznd=a.jznd
|
|
621
|
640
|
</select>
|