select id, account_name, account_information, del_flag, create_time, update_time
from receiving_account
and del_flag = 1
and id = #{id}
and account_name like concat('%', #{accountName}, '%')
and account_information like concat('%', #{accountInformation}, '%')
order by create_time desc
insert into receiving_account
account_name,account_information,del_flag,create_time,update_time,#{accountName},#{accountInformation},#{delFlag},#{createTime},#{updateTime},
insert into receiving_account (account_name, account_information, del_flag, create_time, update_time,top_organization_id, organization_id)
values
(
#{item.accountName},
#{item.accountInformation},
#{item.delFlag},
#{item.createTime},
#{item.updateTime},#{item.topOrganizationId},#{item.organizationId}
)
update receiving_account
set del_flag = 2,
update_time = now()
where id = #{id}
update receiving_account
set del_flag = 2,
update_time = now()
where del_flag = 1