|
|
@@ -24,12 +24,12 @@
|
|
24
|
24
|
<!-- 保存合并通知单明细表数据 -->
|
|
25
|
25
|
<insert id="insertBusinessMergeNoticeDetail" parameterType="com.chinaitop.depot.business.model.BusinessMergeNoticeDetail">
|
|
26
|
26
|
insert into business_merge_notice_detail (id, org_id, cjsj,
|
|
27
|
|
- cjr, updatetime, zid, datatype, tzdid, tzdbh, htbh, lspz, khmc, ch, hwh, jhsl, sysl)
|
|
|
27
|
+ cjr, updatetime, zid, datatype, tzdid, tzdbh, htbh, lspz, khmc, ch, hwh, jhsl, sysl, hbhsl)
|
|
28
|
28
|
values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{cjsj,jdbcType=TIMESTAMP},
|
|
29
|
29
|
#{cjr,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{zid,jdbcType=VARCHAR}, #{datatype,jdbcType=VARCHAR},
|
|
30
|
30
|
#{tzdid,jdbcType=VARCHAR}, #{tzdbh,jdbcType=VARCHAR}, #{htbh,jdbcType=VARCHAR},
|
|
31
|
31
|
#{lspz,jdbcType=INTEGER}, #{khmc,jdbcType=VARCHAR}, #{ch,jdbcType=INTEGER},
|
|
32
|
|
- #{hwh,jdbcType=INTEGER}, #{jhsl,jdbcType=DECIMAL}, #{sysl,jdbcType=DECIMAL})
|
|
|
32
|
+ #{hwh,jdbcType=INTEGER}, #{jhsl,jdbcType=DECIMAL}, #{sysl,jdbcType=DECIMAL}, #{hbhsl,jdbcType=DECIMAL})
|
|
33
|
33
|
</insert>
|
|
34
|
34
|
<!-- 合并通知单列表查询 -->
|
|
35
|
35
|
<select id="findByPageList" resultType="com.chinaitop.depot.business.model.BusinessMergeNotice" parameterType="map">
|
|
|
@@ -61,7 +61,7 @@
|
|
61
|
61
|
<!-- 查询子表数据集合 -->
|
|
62
|
62
|
<select id="findByZidDetailList" resultType="com.chinaitop.depot.business.model.BusinessMergeNoticeDetail" parameterType="map">
|
|
63
|
63
|
SELECT
|
|
64
|
|
- id, org_id, cjsj, cjr, updatetime, zid, datatype, tzdid, tzdbh, htbh, lspz, khmc, ch, hwh, jhsl, sysl
|
|
|
64
|
+ id, org_id, cjsj, cjr, updatetime, zid, datatype, tzdid, tzdbh, htbh, lspz, khmc, ch, hwh, jhsl, sysl, hbhsl
|
|
65
|
65
|
FROM business_merge_notice_detail
|
|
66
|
66
|
WHERE 1=1
|
|
67
|
67
|
<if test="obj.zid != null">
|
|
|
@@ -70,6 +70,9 @@
|
|
70
|
70
|
<if test="obj.orgId != null">
|
|
71
|
71
|
AND org_id = #{obj.orgId,jdbcType=INTEGER}
|
|
72
|
72
|
</if>
|
|
|
73
|
+ <if test="obj.tzdid != null">
|
|
|
74
|
+ AND tzdid = #{obj.tzdid,jdbcType=VARCHAR}
|
|
|
75
|
+ </if>
|
|
73
|
76
|
ORDER BY cjsj
|
|
74
|
77
|
</select>
|
|
75
|
78
|
</mapper>
|