insert into admin(admin_name,machine_id,account,password,market,postiton,remark,admin_status)
values(#{adminName},#{machineId},#{account},#{password},#{market},#{postiton},#{remark},1)
insert into admin_role(admin_id,role_id)
values(#{adminId},#{roleId})
update admin
admin_status= #{adminStatus},
where id=#{id}
update admin_role
role_id= #{roleId},
where admin_id= #{id}
delete from admin where id=#{id}
delete from admin_role where admin_id= #{id}