select branch_id, enterprise_id, branch_name, branch_code, branch_type, address,
contact_person, contact_phone, longitude, latitude, status, create_by,
create_time, update_by, update_time
from sys_enterprise_branch
insert into sys_enterprise_branch
enterprise_id,
branch_name,
branch_code,
branch_type,
address,
contact_person,
contact_phone,
longitude,
latitude,
status,
create_by,
create_time,
update_by,
#{enterpriseId},
#{branchName},
#{branchCode},
#{branchType},
#{address},
#{contactPerson},
#{contactPhone},
#{longitude},
#{latitude},
#{status},
#{createBy},
sysdate(),
#{updateBy},
update sys_enterprise_branch
enterprise_id = #{enterpriseId},
branch_name = #{branchName},
branch_code = #{branchCode},
branch_type = #{branchType},
address = #{address},
contact_person = #{contactPerson},
contact_phone = #{contactPhone},
longitude = #{longitude},
latitude = #{latitude},
status = #{status},
update_by = #{updateBy},
update_time = sysdate(),
where branch_id = #{branchId}
delete from sys_enterprise_branch where branch_id = #{branchId}
delete from sys_enterprise_branch where branch_id in
#{branchId}