chengf
2026-01-16 d5b6bebe835f1597f227409feced749dbe811fc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="maintenancePaymentServiceDaoImpl">
    <!-- 删除费用导入明细信息 -->
    <delete id="deleteImportFeeDetailInfo" parameterType="Map">
        delete from maintenance_payment t
        where 1 = 1
        <if test="id != null">
            and t.id = #{id}
        </if>
        <if test="auxiliaryColumn != null and auxiliaryColumn != ''">
            and t.auxiliary_column = #{auxiliaryColumn}
        </if>
        <if test="flowNumber != null and flowNumber != ''">
            and t.flow_number = #{flowNumber}
        </if>
        <if test="serialNumber != null">
            and t.serial_number = #{serialNumber}
        </if>
    </delete>
 
    <!-- 保存费用导入明细信息 add by wuxw 2018-07-03 -->
    <insert id="saveImportFeeDetailInfo" parameterType="Map">
        insert into maintenance_payment(
        auxiliary_column, flow_number, serial_number, project_code, project_name,
        `year`, `month`, `day`, `date`, project_content, management_office_amount,
        management_office_seal, owners_committee_amount, audit_amount, owners_committee_seal,
        report_department, fund_type_level1, fund_type_level2, building_or_all,
        maintenance_type, quality_guarantee_period1, public_income_announcement,
        owners_committee_convention, withdrawal_problem, problem_difficulty,
        available_withdrawal_date, quality_guarantee_period2, quality_guarantee_ratio,
        quality_guarantee_amount, received_quality_guarantee, planned_announcement_start,
        planned_announcement_end, published_announcement_start, published_announcement_end,
        quota, owners_committee_resolution, owners_committee_consultation,
        withdrawal_encountered_problem, shortage_or_arrears, road_name, lane,
        `door`, room, door_room_number, owner_address, start_date, end_date,
        payee_name, id_card_number, bank_name, bank_account, remarks, acceptance_date, audit_date, id
        ) values (
        #{auxiliaryColumn}, #{flowNumber}, #{serialNumber}, #{projectCode}, #{projectName},
        <if test="year == null">null,</if>
        <if test="year != null">#{year},</if>
        <if test="month == null">null,</if>
        <if test="month != null">#{month},</if>
        <if test="day == null">null,</if>
        <if test="day != null">#{day},</if>
        #{date}, #{projectContent},
        <if test="managementOfficeAmount == null">0,</if>
        <if test="managementOfficeAmount != null">#{managementOfficeAmount},</if>
        #{managementOfficeSeal},
        <if test="ownersCommitteeAmount == null">0,</if>
        <if test="ownersCommitteeAmount != null">#{ownersCommitteeAmount},</if>
        <if test="auditAmount == null">0,</if>
        <if test="auditAmount != null">#{auditAmount},</if>
        #{ownersCommitteeSeal}, #{reportDepartment}, #{fundTypeLevel1}, #{fundTypeLevel2}, #{buildingOrAll},
        #{maintenanceType}, #{qualityGuaranteePeriod1}, #{publicIncomeAnnouncement},
        #{ownersCommitteeConvention}, #{withdrawalProblem}, #{problemDifficulty},
        #{availableWithdrawalDate}, #{qualityGuaranteePeriod2},
        <if test="qualityGuaranteeRatio == null">0,</if>
        <if test="qualityGuaranteeRatio != null">#{qualityGuaranteeRatio},</if>
        <if test="qualityGuaranteeAmount == null">0,</if>
        <if test="qualityGuaranteeAmount != null">#{qualityGuaranteeAmount},</if>
        <if test="receivedQualityGuarantee == null">0,</if>
        <if test="receivedQualityGuarantee != null">#{receivedQualityGuarantee},</if>
        #{plannedAnnouncementStart}, #{plannedAnnouncementEnd}, #{publishedAnnouncementStart}, #{publishedAnnouncementEnd},
        <if test="quota == null">0,</if>
        <if test="quota != null">#{quota},</if>
        #{ownersCommitteeResolution}, #{ownersCommitteeConsultation},
        #{withdrawalEncounteredProblem},
        <if test="shortageOrArrears == null">0,</if>
        <if test="shortageOrArrears != null">#{shortageOrArrears},</if>
        #{roadName}, #{lane}, #{door}, #{room}, #{doorRoomNumber}, #{ownerAddress}, #{startDate}, #{endDate},
        #{payeeName}, #{idCardNumber}, #{bankName}, #{bankAccount}, #{remarks}, #{acceptanceDate}, #{auditDate}, #{id}
        )
    </insert>
 
 
    <!-- 查询费用导入明细信息 add by wuxw 2018-07-03 -->
    <select id="getImportFeeDetailInfo" parameterType="Map" resultType="Map">
        select
        t.auxiliary_column,t.auxiliary_column auxiliaryColumn,
        t.flow_number,t.flow_number flowNumber,
        t.serial_number,t.serial_number serialNumber,
        t.project_code,t.project_code projectCode,
        t.project_name,t.project_name projectName,
        t.`year`,
        t.`month`,
        t.`day`,
        t.`date`,
        t.project_content,t.project_content projectContent,
        t.management_office_amount,t.management_office_amount managementOfficeAmount,
        t.management_office_seal,t.management_office_seal managementOfficeSeal,
        t.owners_committee_amount,t.owners_committee_amount ownersCommitteeAmount,
        t.audit_amount,t.audit_amount auditAmount,
        t.owners_committee_seal,t.owners_committee_seal ownersCommitteeSeal,
        t.report_department,t.report_department reportDepartment,
        t.fund_type_level1,t.fund_type_level1 fundTypeLevel1,
        t.fund_type_level2,t.fund_type_level2 fundTypeLevel2,
        t.building_or_all,t.building_or_all buildingOrAll,
        t.maintenance_type,t.maintenance_type maintenanceType,
        t.quality_guarantee_period1,t.quality_guarantee_period1 qualityGuaranteePeriod1,
        t.public_income_announcement,t.public_income_announcement publicIncomeAnnouncement,
        t.owners_committee_convention,t.owners_committee_convention ownersCommitteeConvention,
        t.withdrawal_problem,t.withdrawal_problem withdrawalProblem,
        t.problem_difficulty,t.problem_difficulty problemDifficulty,
        t.available_withdrawal_date,t.available_withdrawal_date availableWithdrawalDate,
        t.quality_guarantee_period2,t.quality_guarantee_period2 qualityGuaranteePeriod2,
        t.quality_guarantee_ratio,t.quality_guarantee_ratio qualityGuaranteeRatio,
        t.quality_guarantee_amount,t.quality_guarantee_amount qualityGuaranteeAmount,
        t.received_quality_guarantee,t.received_quality_guarantee receivedQualityGuarantee,
        t.planned_announcement_start,t.planned_announcement_start plannedAnnouncementStart,
        t.planned_announcement_end,t.planned_announcement_end plannedAnnouncementEnd,
        t.published_announcement_start,t.published_announcement_start publishedAnnouncementStart,
        t.published_announcement_end,t.published_announcement_end publishedAnnouncementEnd,
        t.quota,
        t.owners_committee_resolution,t.owners_committee_resolution ownersCommitteeResolution,
        t.owners_committee_consultation,t.owners_committee_consultation ownersCommitteeConsultation,
        t.withdrawal_encountered_problem,t.withdrawal_encountered_problem withdrawalEncounteredProblem,
        t.shortage_or_arrears,t.shortage_or_arrears shortageOrArrears,
        t.road_name,t.road_name roadName,
        t.lane,
        t.`door`,
        t.room,
        t.door_room_number,t.door_room_number doorRoomNumber,
        t.owner_address,t.owner_address ownerAddress,
        t.start_date,t.start_date startDate,
        t.end_date,t.end_date endDate,
        t.payee_name,t.payee_name payeeName,
        t.id_card_number,t.id_card_number idCardNumber,
        t.bank_name,t.bank_name bankName,
        t.bank_account,t.bank_account bankAccount,
        t.remarks,
        t.acceptance_date,t.acceptance_date acceptanceDate,
        t.audit_date,t.audit_date auditDate,
        t.id
        from maintenance_payment t
        where 1 =1
        <if test="auxiliaryColumn !=null and auxiliaryColumn != ''">
            and t.auxiliary_column = #{auxiliaryColumn}
        </if>
        <if test="flowNumber !=null and flowNumber != ''">
            and t.flow_number = #{flowNumber}
        </if>
        <if test="serialNumber !=null">
            and t.serial_number = #{serialNumber}
        </if>
        <if test="projectCode !=null and projectCode != ''">
            and t.project_code = #{projectCode}
        </if>
        <if test="projectName !=null and projectName != ''">
            and t.project_name = #{projectName}
        </if>
        <if test="year !=null">
            and t.year = #{year}
        </if>
        <if test="month !=null">
            and t.month = #{month}
        </if>
        <if test="day !=null">
            and t.day = #{day}
        </if>
        <if test="date !=null">
            and t.date = #{date}
        </if>
        <if test="managementOfficeAmount !=null">
            and t.management_office_amount = #{managementOfficeAmount}
        </if>
        <if test="ownersCommitteeAmount !=null">
            and t.owners_committee_amount = #{ownersCommitteeAmount}
        </if>
        <if test="auditAmount !=null">
            and t.audit_amount = #{auditAmount}
        </if>
        <if test="roadName !=null and roadName != ''">
            and t.road_name = #{roadName}
        </if>
        <if test="doorRoomNumber !=null and doorRoomNumber != ''">
            and t.door_room_number = #{doorRoomNumber}
        </if>
        <if test="payeeName !=null and payeeName != ''">
            and t.payee_name like concat('%', #{payeeName}, '%')
        </if>
        <if test="bankAccount !=null and bankAccount != ''">
            and t.bank_account = #{bankAccount}
        </if>
        <if test="id !=null">
            and t.id = #{id}
        </if>
        order by t.id desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
 
    </select>
 
 
    <!-- 修改费用导入明细信息 add by wuxw 2018-07-03 -->
    <update id="updateImportFeeDetailInfo" parameterType="Map">
        update maintenance_payment t
        <!-- 注意:id作为主键,通常不建议更新,这里保留但标注,建议根据业务决定是否删除 -->
        set t.id = #{id}
        <if test="newBId != null and newBId != ''">
            ,t.b_id = #{newBId}
        </if>
        <if test="auxiliaryColumn !=null and auxiliaryColumn != ''">
            , t.auxiliary_column = #{auxiliaryColumn}
        </if>
        <if test="flowNumber !=null and flowNumber != ''">
            , t.flow_number = #{flowNumber}
        </if>
        <if test="serialNumber !=null">
            , t.serial_number = #{serialNumber}
        </if>
        <if test="projectCode !=null and projectCode != ''">
            , t.project_code = #{projectCode}
        </if>
        <if test="projectName !=null and projectName != ''">
            , t.project_name = #{projectName}
        </if>
        <if test="fundTypeLevel1 != null and fundTypeLevel1 != ''">
            , t.fund_type_level1 = #{fundTypeLevel1}
        </if>
        <if test="fundTypeLevel2 != null and fundTypeLevel2 != ''">
            , t.fund_type_level2 = #{fundTypeLevel2}
        </if>
        <if test="buildingOrAll != null and buildingOrAll != ''">
            , t.building_or_all = #{buildingOrAll}
        </if>
        <if test="year !=null">
            , t.year = #{year}
        </if>
        <if test="month !=null">
            , t.month = #{month}
        </if>
        <if test="day !=null">
            , t.day = #{day}
        </if>
        <if test="date !=null">
            , t.date = #{date}
        </if>
        <if test="projectContent !=null and projectContent != ''">
            , t.project_content = #{projectContent}
        </if>
        <if test="managementOfficeAmount !=null">
            , t.management_office_amount = #{managementOfficeAmount}
        </if>
        <if test="managementOfficeSeal !=null and managementOfficeSeal != ''">
            , t.management_office_seal = #{managementOfficeSeal}
        </if>
        <if test="ownersCommitteeAmount !=null">
            , t.owners_committee_amount = #{ownersCommitteeAmount}
        </if>
        <if test="auditAmount !=null">
            , t.audit_amount = #{auditAmount}
        </if>
        <if test="ownersCommitteeSeal !=null and ownersCommitteeSeal != ''">
            , t.owners_committee_seal = #{ownersCommitteeSeal}
        </if>
        <if test="reportDepartment !=null and reportDepartment != ''">
            , t.report_department = #{reportDepartment}
        </if>
        <if test="payeeName !=null and payeeName != ''">
            , t.payee_name = #{payeeName}
        </if>
        <if test="idCardNumber !=null and idCardNumber != ''">
            , t.id_card_number = #{idCardNumber}
        </if>
        <if test="bankName !=null and bankName != ''">
            , t.bank_name = #{bankName}
        </if>
        <if test="bankAccount !=null and bankAccount != ''">
            , t.bank_account = #{bankAccount}
        </if>
        <if test="remarks !=null and remarks != ''">
            , t.remarks = #{remarks}
        </if>
        <if test="acceptanceDate !=null">
            , t.acceptance_date = #{acceptanceDate}
        </if>
        <if test="auditDate !=null and auditDate != ''">
            , t.audit_date = #{auditDate}
        </if>
        <!-- 以下为补充的缺失字段 -->
        <if test="maintenanceType !=null and maintenanceType != ''">
            , t.maintenance_type = #{maintenanceType}
        </if>
        <if test="qualityGuaranteePeriod1 !=null">
            , t.quality_guarantee_period1 = #{qualityGuaranteePeriod1}
        </if>
        <if test="publicIncomeAnnouncement !=null and publicIncomeAnnouncement != ''">
            , t.public_income_announcement = #{publicIncomeAnnouncement}
        </if>
        <if test="ownersCommitteeConvention !=null and ownersCommitteeConvention != ''">
            , t.owners_committee_convention = #{ownersCommitteeConvention}
        </if>
        <if test="withdrawalProblem !=null and withdrawalProblem != ''">
            , t.withdrawal_problem = #{withdrawalProblem}
        </if>
        <if test="problemDifficulty !=null and problemDifficulty != ''">
            , t.problem_difficulty = #{problemDifficulty}
        </if>
        <if test="availableWithdrawalDate !=null">
            , t.available_withdrawal_date = #{availableWithdrawalDate}
        </if>
        <if test="qualityGuaranteePeriod2 !=null">
            , t.quality_guarantee_period2 = #{qualityGuaranteePeriod2}
        </if>
        <if test="qualityGuaranteeRatio !=null">
            , t.quality_guarantee_ratio = #{qualityGuaranteeRatio}
        </if>
        <if test="qualityGuaranteeAmount !=null">
            , t.quality_guarantee_amount = #{qualityGuaranteeAmount}
        </if>
        <if test="receivedQualityGuarantee !=null">
            , t.received_quality_guarantee = #{receivedQualityGuarantee}
        </if>
        <if test="plannedAnnouncementStart !=null">
            , t.planned_announcement_start = #{plannedAnnouncementStart}
        </if>
        <if test="plannedAnnouncementEnd !=null">
            , t.planned_announcement_end = #{plannedAnnouncementEnd}
        </if>
        <if test="publishedAnnouncementStart !=null">
            , t.published_announcement_start = #{publishedAnnouncementStart}
        </if>
        <if test="publishedAnnouncementEnd !=null">
            , t.published_announcement_end = #{publishedAnnouncementEnd}
        </if>
        <if test="quota !=null">
            , t.quota = #{quota}
        </if>
        <if test="ownersCommitteeResolution !=null and ownersCommitteeResolution != ''">
            , t.owners_committee_resolution = #{ownersCommitteeResolution}
        </if>
        <if test="ownersCommitteeConsultation !=null and ownersCommitteeConsultation != ''">
            , t.owners_committee_consultation = #{ownersCommitteeConsultation}
        </if>
        <if test="withdrawalEncounteredProblem !=null and withdrawalEncounteredProblem != ''">
            , t.withdrawal_encountered_problem = #{withdrawalEncounteredProblem}
        </if>
        <if test="shortageOrArrears !=null and shortageOrArrears != ''">
            , t.shortage_or_arrears = #{shortageOrArrears}
        </if>
        <if test="roadName !=null and roadName != ''">
            , t.road_name = #{roadName}
        </if>
        <if test="lane !=null and lane != ''">
            , t.lane = #{lane}
        </if>
        <if test="door !=null and door != ''">
            , t.door = #{door}
        </if>
        <if test="room !=null and room != ''">
            , t.room = #{room}
        </if>
        <if test="doorRoomNumber !=null and doorRoomNumber != ''">
            , t.door_room_number = #{doorRoomNumber}
        </if>
        <if test="ownerAddress !=null and ownerAddress != ''">
            , t.owner_address = #{ownerAddress}
        </if>
        <if test="startDate !=null">
            , t.start_date = #{startDate}
        </if>
        <if test="endDate !=null">
            , t.end_date = #{endDate}
        </if>
 
        where 1=1
        <if test="id !=null">
            and t.id = #{id}
        </if>
    </update>
 
    <!-- 查询费用导入明细数量 add by wuxw 2018-07-03 -->
    <select id="queryImportFeeDetailsCount" parameterType="Map" resultType="Map">
        select count(1) count
        from maintenance_payment t
        where 1 =1
        <if test="auxiliaryColumn !=null and auxiliaryColumn != ''">
            and t.auxiliary_column = #{auxiliaryColumn}
        </if>
        <if test="flowNumber !=null and flowNumber != ''">
            and t.flow_number = #{flowNumber}
        </if>
        <if test="serialNumber !=null">
            and t.serial_number = #{serialNumber}
        </if>
        <if test="projectCode !=null and projectCode != ''">
            and t.project_code = #{projectCode}
        </if>
        <if test="projectName !=null and projectName != ''">
            and t.project_name = #{projectName}
        </if>
        <if test="year !=null">
            and t.year = #{year}
        </if>
        <if test="month !=null">
            and t.month = #{month}
        </if>
        <if test="day !=null">
            and t.day = #{day}
        </if>
        <if test="date !=null">
            and t.date = #{date}
        </if>
        <if test="managementOfficeAmount !=null">
            and t.management_office_amount = #{managementOfficeAmount}
        </if>
        <if test="ownersCommitteeAmount !=null">
            and t.owners_committee_amount = #{ownersCommitteeAmount}
        </if>
        <if test="auditAmount !=null">
            and t.audit_amount = #{auditAmount}
        </if>
        <if test="roadName !=null and roadName != ''">
            and t.road_name = #{roadName}
        </if>
        <if test="doorRoomNumber !=null and doorRoomNumber != ''">
            and t.door_room_number = #{doorRoomNumber}
        </if>
        <if test="payeeName !=null and payeeName != ''">
            and t.payee_name like concat('%', #{payeeName}, '%')
        </if>
        <if test="bankAccount !=null and bankAccount != ''">
            and t.bank_account = #{bankAccount}
        </if>
        <if test="id !=null">
            and t.id = #{id}
        </if>
 
    </select>
 
    <!-- 批量插入费用 -->
    <insert id="saveImportFeeDetails" parameterType="Map">
        insert into maintenance_payment(
        auxiliary_column, flow_number, serial_number, project_code, project_name,
        `year`, `month`, `day`, `date`, project_content, management_office_amount,
        management_office_seal, owners_committee_amount, audit_amount, owners_committee_seal,
        report_department, fund_type_level1, fund_type_level2, building_or_all,
        maintenance_type, quality_guarantee_period1, public_income_announcement,
        owners_committee_convention, withdrawal_problem, problem_difficulty,
        available_withdrawal_date, quality_guarantee_period2, quality_guarantee_ratio,
        quality_guarantee_amount, received_quality_guarantee, planned_announcement_start,
        planned_announcement_end, published_announcement_start, published_announcement_end,
        quota, owners_committee_resolution, owners_committee_consultation,
        withdrawal_encountered_problem, shortage_or_arrears, road_name, lane,
        `door`, room, door_room_number, owner_address, start_date, end_date,
        payee_name, id_card_number, bank_name, bank_account, remarks, acceptance_date, audit_date
        ) values
        <foreach collection="importFeeDetailPos" item="item" separator=",">
            ( #{item.auxiliaryColumn}, #{item.flowNumber}, #{item.serialNumber}, #{item.projectCode}, #{item.projectName},
            <if test="item.year == null">null</if><if test="item.year != null">#{item.year}</if>,
            <if test="item.month == null">null</if><if test="item.month != null">#{item.month}</if>,
            <if test="item.day == null">null</if><if test="item.day != null">#{item.day}</if>,
            #{item.date}, #{item.projectContent},
            <if test="item.managementOfficeAmount == null">0</if><if test="item.managementOfficeAmount != null">#{item.managementOfficeAmount}</if>,
            #{item.managementOfficeSeal},
            <if test="item.ownersCommitteeAmount == null">0</if><if test="item.ownersCommitteeAmount != null">#{item.ownersCommitteeAmount}</if>,
            <if test="item.auditAmount == null">0</if><if test="item.auditAmount != null">#{item.auditAmount}</if>,
            #{item.ownersCommitteeSeal}, #{item.reportDepartment}, #{item.fundTypeLevel1}, #{item.fundTypeLevel2}, #{item.buildingOrAll},
            #{item.maintenanceType}, #{item.qualityGuaranteePeriod1}, #{item.publicIncomeAnnouncement},
            #{item.ownersCommitteeConvention}, #{item.withdrawalProblem}, #{item.problemDifficulty},
            #{item.availableWithdrawalDate}, #{item.qualityGuaranteePeriod2},
            <if test="item.qualityGuaranteeRatio == null">0</if><if test="item.qualityGuaranteeRatio != null">#{item.qualityGuaranteeRatio}</if>,
            <if test="item.qualityGuaranteeAmount == null">0</if><if test="item.qualityGuaranteeAmount != null">#{item.qualityGuaranteeAmount}</if>,
            <if test="item.receivedQualityGuarantee == null">0</if><if test="item.receivedQualityGuarantee != null">#{item.receivedQualityGuarantee}</if>,
            #{item.plannedAnnouncementStart}, #{item.plannedAnnouncementEnd}, #{item.publishedAnnouncementStart}, #{item.publishedAnnouncementEnd},
            <if test="item.quota == null">0</if><if test="item.quota != null">#{item.quota}</if>,
            #{item.ownersCommitteeResolution}, #{item.ownersCommitteeConsultation},
            #{item.withdrawalEncounteredProblem},
            <if test="item.shortageOrArrears == null">0</if><if test="item.shortageOrArrears != null">#{item.shortageOrArrears}</if>,
            #{item.roadName}, #{item.lane}, #{item.door}, #{item.room}, #{item.doorRoomNumber}, #{item.ownerAddress}, #{item.startDate}, #{item.endDate},
            #{item.payeeName}, #{item.idCardNumber}, #{item.bankName}, #{item.bankAccount}, #{item.remarks}, #{item.acceptanceDate}, #{item.auditDate})
        </foreach>
    </insert>
 
</mapper>