- 后端:增加异常日志的记录
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
<!--create_time-->
|
||||
<!--</sql>-->
|
||||
|
||||
<insert id="insert" parameterType="AccessLogDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
||||
INSERT INTO access_log (
|
||||
trace_id, user_id, user_type, uri, query_string, method, user_agent,
|
||||
ip, start_time, response_time, error_code, error_message, create_time
|
||||
) VALUES (
|
||||
#{traceId}, #{userId}, #{userType}, #{uri}, #{queryString}, #{method}, #{userAgent},
|
||||
#{ip}, #{startTime}, #{responseTime}, #{errorCode}, #{errorMessage}, #{createTime}
|
||||
)
|
||||
</insert>
|
||||
<!-- <insert id="insert" parameterType="AccessLogDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id">-->
|
||||
<!-- INSERT INTO access_log (-->
|
||||
<!-- trace_id, user_id, user_type, uri, query_string, method, user_agent,-->
|
||||
<!-- ip, start_time, response_time, error_code, error_message, create_time-->
|
||||
<!-- ) VALUES (-->
|
||||
<!-- #{traceId}, #{userId}, #{userType}, #{uri}, #{queryString}, #{method}, #{userAgent},-->
|
||||
<!-- #{ip}, #{startTime}, #{responseTime}, #{errorCode}, #{errorMessage}, #{createTime}-->
|
||||
<!-- )-->
|
||||
<!-- </insert>-->
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user