INSERT INTO access_log (id, time, user_id, user_real_name, gate_id, type)
VALUES (#{id}, #{time}, #{userId}, #{userRealName}, #{gateId}, #{type})
UPDATE access_log
time = #{time},user_id = #{userId},user_real_name = #{userRealName},gate_id = #{gateId},type = #{type}
WHERE id = #{id}
DELETE
FROM access_log
WHERE id = #{id}