insert into phone_bill_flow(
id,community_id,room_id,profit_share_serial,device_number,payee,account_name,`handler`,is_transfer,
transferred_company,transfer_date,address,year,month,bill_cycle,last_payment_date,package_fixed_fee,
extra_voice_fee,comprehensive_info_fee,other_fee,payable_amount,remark1,invoiced_amount,uninvoiced_amount,
late_fee,subtotal,affiliated_unit,payment_date,remark2,data_entry_person,data_entry_date,
financial_auditor,financial_audit_date
) values (
#{id},#{communityId},#{roomId},#{profitShareSerial},#{deviceNumber},#{payee},#{accountName},#{handler},#{isTransfer},
#{transferredCompany},#{transferDate},#{address},#{year},#{month},#{billCycle},#{lastPaymentDate},#{packageFixedFee},
#{extraVoiceFee},#{comprehensiveInfoFee},#{otherFee},#{payableAmount},#{remark1},#{invoicedAmount},#{uninvoicedAmount},
#{lateFee},#{subtotal},#{affiliatedUnit},#{paymentDate},#{remark2},#{dataEntryPerson},#{dataEntryDate},
#{financialAuditor},#{financialAuditDate}
)
update phone_bill_flow t
,t.community_id= #{communityId}
,t.room_id= #{roomId}
,t.profit_share_serial= #{profitShareSerial}
,t.device_number= #{deviceNumber}
,t.payee= #{payee}
,t.account_name= #{accountName}
,t.`handler`= #{handler}
,t.is_transfer= #{isTransfer}
,t.transferred_company= #{transferredCompany}
,t.transfer_date= #{transferDate}
,t.address= #{address}
,t.year= #{year}
,t.month= #{month}
,t.bill_cycle= #{billCycle}
,t.last_payment_date= #{lastPaymentDate}
,t.package_fixed_fee= #{packageFixedFee}
,t.extra_voice_fee= #{extraVoiceFee}
,t.comprehensive_info_fee= #{comprehensiveInfoFee}
,t.other_fee= #{otherFee}
,t.payable_amount= #{payableAmount}
,t.remark1= #{remark1}
,t.invoiced_amount= #{invoicedAmount}
,t.uninvoiced_amount= #{uninvoicedAmount}
,t.late_fee= #{lateFee}
,t.subtotal= #{subtotal}
,t.affiliated_unit= #{affiliatedUnit}
,t.payment_date= #{paymentDate}
,t.remark2= #{remark2}
,t.data_entry_person= #{dataEntryPerson}
,t.data_entry_date= #{dataEntryDate}
,t.financial_auditor= #{financialAuditor}
,t.financial_audit_date= #{financialAuditDate}
where 1=1
and t.id= #{id}
insert into phone_bill_flow
(id,community_id,room_id,profit_share_serial,device_number,payee,account_name,`handler`,is_transfer,
transferred_company,transfer_date,address,year,month,bill_cycle,last_payment_date,package_fixed_fee,
extra_voice_fee,comprehensive_info_fee,other_fee,payable_amount,remark1,invoiced_amount,uninvoiced_amount,
late_fee,subtotal,affiliated_unit,payment_date,remark2,data_entry_person,data_entry_date,
financial_auditor,financial_audit_date)
VALUES
(#{item.id},#{item.communityId},#{item.roomId},#{item.profitShareSerial},#{item.deviceNumber},#{item.payee},
#{item.accountName},#{item.handler},#{item.isTransfer},#{item.transferredCompany},#{item.transferDate},
#{item.address},#{item.year},#{item.month},#{item.billCycle},#{item.lastPaymentDate},#{item.packageFixedFee},
#{item.extraVoiceFee},#{item.comprehensiveInfoFee},#{item.otherFee},#{item.payableAmount},#{item.remark1},
#{item.invoicedAmount},#{item.uninvoicedAmount},#{item.lateFee},#{item.subtotal},#{item.affiliatedUnit},
#{item.paymentDate},#{item.remark2},#{item.dataEntryPerson},#{item.dataEntryDate},#{item.financialAuditor},
#{item.financialAuditDate})