select thisTab.id, thisTab.bank_flow_no, thisTab.company, thisTab.our_account, thisTab.our_bank_name, thisTab.income_expense_flag, thisTab.transaction_amount, thisTab.currency, thisTab.counterparty_account, thisTab.counterparty_name, thisTab.transaction_date, thisTab.purpose, thisTab.summary, thisTab.remarks, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.del_flag from fund_flow AS thisTab
select count(0) from fund_flow as thisTab
and thisTab.bank_flow_no = #{bankFlowNo}
and thisTab.company = #{company}
and thisTab.our_account = #{ourAccount}
and thisTab.our_bank_name like concat('%', #{ourBankName}, '%')
and thisTab.income_expense_flag = #{incomeExpenseFlag}
and thisTab.transaction_amount = #{transactionAmount}
and thisTab.currency = #{currency}
and thisTab.counterparty_account = #{counterpartyAccount}
and thisTab.counterparty_name like concat('%', #{counterpartyName}, '%')
and thisTab.transaction_date = #{transactionDate}
and thisTab.purpose = #{purpose}
and thisTab.summary = #{summary}
and thisTab.remarks = #{remarks}
insert into fund_flow
bank_flow_no,
company,
our_account,
our_bank_name,
income_expense_flag,
transaction_amount,
currency,
counterparty_account,
counterparty_name,
transaction_date,
purpose,
summary,
remarks,
create_by,
create_time,
update_by,
update_time,
del_flag,
#{bankFlowNo},
#{company},
#{ourAccount},
#{ourBankName},
#{incomeExpenseFlag},
#{transactionAmount},
#{currency},
#{counterpartyAccount},
#{counterpartyName},
#{transactionDate},
#{purpose},
#{summary},
#{remarks},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
insert into fund_flow
id,bank_flow_no,company,our_account,our_bank_name,income_expense_flag,transaction_amount,currency,counterparty_account,counterparty_name,transaction_date,purpose,summary,remarks,create_by,create_time,update_by,update_time,del_flag,
#{item.id},#{item.bankFlowNo},#{item.company},#{item.ourAccount},#{item.ourBankName},#{item.incomeExpenseFlag},#{item.transactionAmount},#{item.currency},#{item.counterpartyAccount},#{item.counterpartyName},#{item.transactionDate},#{item.purpose},#{item.summary},#{item.remarks},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.delFlag},
update fund_flow
bank_flow_no = #{bankFlowNo},
company = #{company},
our_account = #{ourAccount},
our_bank_name = #{ourBankName},
income_expense_flag = #{incomeExpenseFlag},
transaction_amount = #{transactionAmount},
currency = #{currency},
counterparty_account = #{counterpartyAccount},
counterparty_name = #{counterpartyName},
transaction_date = #{transactionDate},
purpose = #{purpose},
summary = #{summary},
remarks = #{remarks},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
del_flag = #{delFlag},
where id = #{id}
update fund_flow
bank_flow_no = #{item.bankFlowNo},
company = #{item.company},
our_account = #{item.ourAccount},
our_bank_name = #{item.ourBankName},
income_expense_flag = #{item.incomeExpenseFlag},
transaction_amount = #{item.transactionAmount},
currency = #{item.currency},
counterparty_account = #{item.counterpartyAccount},
counterparty_name = #{item.counterpartyName},
transaction_date = #{item.transactionDate},
purpose = #{item.purpose},
summary = #{item.summary},
remarks = #{item.remarks},
create_by = #{item.createBy},
create_time = #{item.createTime},
update_by = #{item.updateBy},
update_time = #{item.updateTime},
del_flag = #{item.delFlag},
where id = #{item.id}
delete from fund_flow where id = #{id}
delete from fund_flow where id in
#{id}