|
...
|
...
|
@@ -4,6 +4,7 @@ |
|
4
|
4
|
|
|
5
|
5
|
<resultMap id="ReceiptLedgerInfo" type="com.lframework.xingyun.sc.entity.ReceiptLedgerInfo">
|
|
6
|
6
|
<id column="id" property="id"/>
|
|
|
7
|
+ <result column="type" property="type"/>
|
|
7
|
8
|
<result column="parent_id" property="parentId"/>
|
|
8
|
9
|
<result column="customer_short_id" property="customerShortId"/>
|
|
9
|
10
|
<result column="customer_short_name" property="customerShortName"/>
|
|
...
|
...
|
@@ -45,6 +46,7 @@ |
|
45
|
46
|
<sql id="ReceiptLedgerInfo_sql">
|
|
46
|
47
|
SELECT
|
|
47
|
48
|
tb.id,
|
|
|
49
|
+ tb.type,
|
|
48
|
50
|
tb.parent_id,
|
|
49
|
51
|
tb.customer_short_id,
|
|
50
|
52
|
cs.short_name as customer_short_name,
|
|
...
|
...
|
@@ -96,6 +98,9 @@ |
|
96
|
98
|
<if test="vo.id != null and vo.id != ''">
|
|
97
|
99
|
AND tb.id = #{vo.id}
|
|
98
|
100
|
</if>
|
|
|
101
|
+ <if test="vo.type != null and vo.type != ''">
|
|
|
102
|
+ AND tb.type = #{vo.type}
|
|
|
103
|
+ </if>
|
|
99
|
104
|
<if test="vo.customerShortId != null and vo.customerShortId != ''">
|
|
100
|
105
|
AND tb.customer_short_id = #{vo.customerShortId}
|
|
101
|
106
|
</if>
|
|
...
|
...
|
@@ -137,6 +142,7 @@ |
|
137
|
142
|
<insert id="batchAdd">
|
|
138
|
143
|
INSERT INTO receipt_ledger_info (
|
|
139
|
144
|
id,
|
|
|
145
|
+ type,
|
|
140
|
146
|
parent_id,
|
|
141
|
147
|
customer_short_id,
|
|
142
|
148
|
quota,
|
|
...
|
...
|
@@ -169,6 +175,7 @@ |
|
169
|
175
|
<foreach collection="list" item="item" separator=",">
|
|
170
|
176
|
(
|
|
171
|
177
|
#{item.id},
|
|
|
178
|
+ #{item.type},
|
|
172
|
179
|
#{item.parentId},
|
|
173
|
180
|
#{item.customerShortId},
|
|
174
|
181
|
#{item.quota},
|
...
|
...
|
|