1.修复创建多个向量库2.查看试卷没有用户答案3.向量化自动出题

This commit is contained in:
2026-06-11 21:50:27 +08:00
parent 6cdb38df68
commit a8e28e513d
74 changed files with 5120 additions and 5326 deletions

718
bug.txt
View File

@@ -1,78 +1,169 @@
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@8ec4794] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1316742363 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@74a5df74] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@833048452 wrapping com.mysql.cj.jdbc.ConnectionImpl@76ba610e] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@8ec4794]
2026-06-02 10:17:30 - 请求 | URL: http://localhost:8080/api/ai/session/sess_1780387846575_3rnw6o00w | 方法: GET | IP: 127.0.0.1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@74a5df74]
2026-06-10 13:44:38 - 请求 | URL: http://localhost:8080/api/exam/grade | 方法: POST | IP: 127.0.0.1
2026-06-10 13:44:38 - ========== 批阅接口请求开始 ==========
2026-06-10 13:44:38 - 请求完整内容: {"answer_type":"practice","answers":[{"max_score":10.0,"question_content":{"answer":"加强吸烟场所维护的主要目的是确保设施设备处于良好状态,保障文明吸烟环境功能作用的最大发挥,进一步提高消费者满意度。","data":{"scoring_points":[{"point":"要点1确保设施设备良好状态","weight":0.5},{"point":"要点2保障文明吸烟环境功能发挥","weight":0.3},{"point":"要点3提高消费者满意度","weight":0.2}]},"stem":"请简述加强吸烟场所维护的主要目的及意义。"},"question_id":"806754e9-3951-4562-8641-553c42564ab8","question_type":"subjective","student_answer":"加强吸烟场所维护可以确保设施良好,提升吸烟环境,让消费者更满意。"}],"request_id":"test_005"}
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f50dd49] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@845849611 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@503b434e] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@437070389 wrapping com.mysql.cj.jdbc.ConnectionImpl@76ba610e] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f50dd49]
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@503b434e]
2026-06-10 13:44:38 - 当前用户ID: 1
2026-06-10 13:44:38 - 答案数量: 1
2026-06-10 13:44:38 - 日常练习/模拟考模式,开始验证答案数据...
2026-06-10 13:44:38 - 答案数据验证通过共1个答案
2026-06-10 13:44:38 - 空试卷标记: isBlankSubmission=false
2026-06-10 13:44:38 - 自动生成试卷ID: paperId=68b2574e-e68b-486a-b86b-5426ab2e488b
2026-06-10 13:44:38 - 自动生成sessionId: grade_e099f4df
2026-06-10 13:44:38 - ========== 准备调用批阅服务 ==========
2026-06-10 13:44:38 - 批改答案请求参数汇总:
2026-06-10 13:44:38 - - userId: 1
2026-06-10 13:44:38 - - requestId: test_005
2026-06-10 13:44:38 - - paperId: 68b2574e-e68b-486a-b86b-5426ab2e488b
2026-06-10 13:44:38 - - sessionId: grade_e099f4df
2026-06-10 13:44:38 - - answerType: practice
2026-06-10 13:44:38 - - answers count: 1
2026-06-10 13:44:38 - Service层开始批改题目
2026-06-10 13:44:38 - Service层参数详情:
2026-06-10 13:44:38 - - userId: 1
2026-06-10 13:44:38 - - paperId: 68b2574e-e68b-486a-b86b-5426ab2e488b
2026-06-10 13:44:38 - - sessionId: grade_e099f4df
2026-06-10 13:44:38 - - answerType: practice
2026-06-10 13:44:38 - - 答案数量: 1
2026-06-10 13:44:38 - - AI服务地址: http://localhost:5001/exam/grade
2026-06-10 13:44:38 - Service层准备发送请求到AI服务
2026-06-10 13:44:38 - 请求体内容: {"request_id":"test_005","paper_id":"68b2574e-e68b-486a-b86b-5426ab2e488b","session_id":"grade_e099f4df","record_id":null,"answer_type":"practice","answers":[{"question_id":"806754e9-3951-4562-8641-553c42564ab8","question_type":"subjective","question_content":{"stem":"请简述加强吸烟场所维护的主要目的及意义。","data":{"scoring_points":[{"point":"要点1确保设施设备良好状态","weight":0.5},{"point":"要点2保障文明吸烟环境功能发挥","weight":0.3},{"point":"要点3提高消费者满意度","weight":0.2}]},"answer":"加强吸烟场所维护的主要目的是确保设施设备处于良好状态,保障文明吸烟环境功能作用的最大发挥,进一步提高消费者满意度。"},"student_answer":"加强吸烟场所维护可以确保设施良好,提升吸烟环境,让消费者更满意。","max_score":10.0}]}
2026-06-10 13:44:38 - 请求超时时间: 60000ms (60秒)
2026-06-10 13:44:41 - Service层收到AI服务响应
2026-06-10 13:44:41 - 响应原始内容: {"data":{"request_id":"test_005","results":[{"details":{"highlights":["\u5b66\u751f\u7b54\u6848\u7b80\u6d01\u660e\u4e86\uff0c\u80fd\u591f\u6293\u4f4f\u6838\u5fc3\u8981\u70b9\u3002","\u5bf9\u6d88\u8d39\u8005\u6ee1\u610f\u5ea6\u7684\u8868\u8ff0\u51c6\u786e\u3002"],"overall_feedback":"\u5b66\u751f\u7684\u7b54\u6848\u57fa\u672c\u7b26\u5408\u8981\u6c42\uff0c\u80fd\u591f\u6293\u4f4f\u4e3b\u8981\u89c2\u70b9\uff0c\u4f46\u5728\u90e8\u5206\u8981\u70b9\u7684\u8868\u8fbe\u4e0a\u7565\u663e\u7b80\u7565\uff0c\u5efa\u8bae\u8fdb\u4e00\u6b65\u5b8c\u5584\u8bed\u8a00\u8868\u8ff0\u4ee5\u63d0\u9ad8\u51c6\u786e\u6027\u3002","scoring_breakdown":[{"achieved":0.8,"comment":"\u5b66\u751f\u7b54\u6848\u63d0\u5230\u4e86'\u786e\u4fdd\u8bbe\u65bd\u826f\u597d'\uff0c\u4e0e\u8981\u70b9\u57fa\u672c\u4e00\u81f4\uff0c\u4f46\u672a\u660e\u786e\u63d0\u5230'\u8bbe\u65bd\u8bbe\u5907'\u7684\u5b8c\u6574\u8868\u8ff0\u3002","point":"\u8981\u70b91\uff1a\u786e\u4fdd\u8bbe\u65bd\u8bbe\u5907\u826f\u597d\u72b6\u6001","weight":0.5},{"achieved":0.6,"comment":"\u5b66\u751f\u7b54\u6848\u63d0\u5230'\u63d0\u5347\u5438\u70df\u73af\u5883'\uff0c\u4f46\u672a\u76f4\u63a5\u4f53\u73b0'\u4fdd\u969c\u6587\u660e\u5438\u70df\u73af\u5883\u529f\u80fd\u53d1\u6325'\u7684\u6838\u5fc3\u5185\u5bb9\u3002","point":"\u8981\u70b92\uff1a\u4fdd\u969c\u6587\u660e\u5438\u70df\u73af\u5883\u529f\u80fd\u53d1\u6325","weight":0.3},{"achieved":1.0,"comment":"\u5b66\u751f\u7b54\u6848\u660e\u786e\u63d0\u5230'\u8ba9\u6d88\u8d39\u8005\u66f4\u6ee1\u610f'\uff0c\u4e0e\u8981\u70b9\u5b8c\u5168\u4e00\u81f4\u3002","point":"\u8981\u70b93\uff1a\u63d0\u9ad8\u6d88\u8d39\u8005\u6ee1\u610f\u5ea6","weight":0.2}],"shortcomings":["\u672a\u660e\u786e\u63d0\u53ca'\u8bbe\u65bd\u8bbe\u5907'\u7684\u5b8c\u6574\u8868\u8ff0\u3002","\u5bf9'\u6587\u660e\u5438\u70df\u73af\u5883\u529f\u80fd\u53d1\u6325'\u7684\u7406\u89e3\u4e0d\u591f\u6df1\u5165\u3002"]},"max_score":10.0,"question_id":"806754e9-3951-4562-8641-553c42564ab8","score":8.0}],"score_rate":80.0,"success":true,"total_max_score":10.0,"total_score":8.0},"message":"\u6279\u9605\u5b8c\u6210","status":"success","status_code":2021,"success":true}
2026-06-10 13:44:41 - 开始解析 1 道题
2026-06-10 13:44:41 - 第 1 题 resultNode 内容: {"details":{"highlights":["学生答案简洁明了,能够抓住核心要点。","对消费者满意度的表述准确。"],"overall_feedback":"学生的答案基本符合要求,能够抓住主要观点,但在部分要点的表达上略显简略,建议进一步完善语言表述以提高准确性。","scoring_breakdown":[{"achieved":0.8,"comment":"学生答案提到了'确保设施良好',与要点基本一致,但未明确提到'设施设备'的完整表述。","point":"要点1确保设施设备良好状态","weight":0.5},{"achieved":0.6,"comment":"学生答案提到'提升吸烟环境',但未直接体现'保障文明吸烟环境功能发挥'的核心内容。","point":"要点2保障文明吸烟环境功能发挥","weight":0.3},{"achieved":1.0,"comment":"学生答案明确提到'让消费者更满意',与要点完全一致。","point":"要点3提高消费者满意度","weight":0.2}],"shortcomings":["未明确提及'设施设备'的完整表述。","对'文明吸烟环境功能发挥'的理解不够深入。"]},"max_score":10.0,"question_id":"806754e9-3951-4562-8641-553c42564ab8","score":8.0}
2026-06-10 13:44:41 - resultNode 字段: , 10.0, 806754e9-3951-4562-8641-553c42564ab8, 8.0
2026-06-10 13:44:41 - 读取到 question_id: 806754e9-3951-4562-8641-553c42564ab8
2026-06-10 13:44:41 - 已解析 details 结构
2026-06-10 13:44:41 - 从请求中补全 question_type: subjective
2026-06-10 13:44:41 - 处理第 1 题, 类型: subjective, grading_status: null
2026-06-10 13:44:41 - 检测到主观题,手动解析 details
2026-06-10 13:44:41 - 主观题 feedback 已设置,长度: 408
2026-06-10 13:44:41 - Service层AI服务批改完成
2026-06-10 13:44:41 - 批改结果: success=true, totalScore=8.0, totalMaxScore=10.0, scoreRate=80.0
2026-06-10 13:44:41 - 各题目批改结果:
2026-06-10 13:44:41 - 题目1(806754e9-3951-4562-8641-553c42564ab8): correct=null, score=8.0/10.0, feedback=【亮点】
1. 学生答案简洁明了,能够抓住核心要点。
2. 对消费者满意度的表述准确。
【综合评价】
学生的答案基本符合要求,能够抓住主要观点,但在部分要点的表达上略显简略,建议进一步完善语言表述以提高准确性。
【评分详情】
- 要点1确保设施设备良好状态 (权重: 50%, 得分率: 80%)
评价: 学生答案提到了'确保设施良好',与要点基本一致,但未明确提到'设施设备'的完整表述。
- 要点2保障文明吸烟环境功能发挥 (权重: 30%, 得分率: 60%)
评价: 学生答案提到'提升吸烟环境',但未直接体现'保障文明吸烟环境功能发挥'的核心内容。
- 要点3提高消费者满意度 (权重: 20%, 得分率: 100%)
评价: 学生答案明确提到'让消费者更满意',与要点完全一致。
【可改进之处】
1. 未明确提及'设施设备'的完整表述。
2. 对'文明吸烟环境功能发挥'的理解不够深入。
2026-06-10 13:44:41 - ========== 批阅成功 ==========
2026-06-10 13:44:41 - 批阅结果: totalScore=8.0, totalMaxScore=10.0, scoreRate=80.0%
2026-06-10 13:44:41 - 开始批量保存答题记录: count=1
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@9e498f7] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1083680279 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (user_id = ?) ORDER BY create_time DESC
==> Parameters: 1(Long)
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 62, sess_1780387846575_3rnw6o00w, 1, <<BLOB>>, 2026-06-02 08:10:46
<== Row: 61, sess_1780386659498_e2i0pli3t, 1, <<BLOB>>, 2026-06-02 07:50:59
<== Row: 60, sess_1780385074333_3ektq0vgx, 1, <<BLOB>>, 2026-06-02 07:24:34
<== Row: 59, sess_1780379728867_z5d8v05yp, 1, <<BLOB>>, 2026-06-02 05:55:28
<== Total: 4
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@9e498f7]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5287e229] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@2131360686 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (session_id = ?)
==> Parameters: sess_1780387846575_3rnw6o00w(String)
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 62, sess_1780387846575_3rnw6o00w, 1, <<BLOB>>, 2026-06-02 08:10:46
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5287e229]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@75d9a876] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@413309518 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
==> Preparing: SELECT id,conversation_id,role,content,message_type,is_finished,summary,kb_paths,answer,mode,duration_ms,images,sources,create_time FROM context_message WHERE (conversation_id = ?) ORDER BY create_time ASC
==> Parameters: 62(Long)
<== Columns: id, conversation_id, role, content, message_type, is_finished, summary, kb_paths, answer, mode, duration_ms, images, sources, create_time
<== Row: 170, 62, assistant, <<BLOB>>, rag, 1, <<BLOB>>, <<BLOB>>, <<BLOB>>, null, 150685, <<BLOB>>, <<BLOB>>, 2026-06-02 08:13:17
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@75d9a876]
2026-06-02 10:17:30 - 获取图片: imageId=0cb2b4cd0ca4407a3fc0360f318c16b2
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@22e0ae58] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1397047197 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
==> Preparing: SELECT id,image_id,filename,path,size_bytes,format,source,page,page_end,page_range,section,chunk_type,type,description,full_description,score,collection,create_time FROM context_image WHERE (image_id = ?)
==> Parameters: 0cb2b4cd0ca4407a3fc0360f318c16b2(String)
Registering transaction synchronization for SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70586209]
JDBC Connection [HikariProxyConnection@305915904 wrapping com.mysql.cj.jdbc.ConnectionImpl@76ba610e] will be managed by Spring
==> Preparing: SELECT id,user_id,question_id,question_type,answer_type,paper_id,session_id,user_answer,score,max_score,is_correct,grading_type,feedback,time_spent,paper_time_spent,created_at,updated_at FROM user_answer WHERE (user_id = ? AND question_id = ? AND paper_id = ? AND answer_type = ?)
==> Parameters: 1(Long), 806754e9-3951-4562-8641-553c42564ab8(String), 68b2574e-e68b-486a-b86b-5426ab2e488b(String), practice(String)
<== Total: 0
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@22e0ae58]
2026-06-02 10:17:30 - 调用RAG服务获取图片: url=http://localhost:5001/images/0cb2b4cd0ca4407a3fc0360f318c16b2
2026-06-02 10:17:30 - RAG服务响应状态码: 404
2026-06-02 10:17:30 - RAG服务错误响应内容: {"error":"\u56fe\u7247\u4e0d\u5b58\u5728","image_id":"0cb2b4cd0ca4407a3fc0360f318c16b2"}
2026-06-02 10:17:30 - 调用RAG服务获取图片失败: 调用RAG服务失败: RAG服务返回错误状态码: 404, 错误信息: {"error":"\u56fe\u7247\u4e0d\u5b58\u5728","image_id":"0cb2b4cd0ca4407a3fc0360f318c16b2"}
java.io.IOException: 调用RAG服务失败: RAG服务返回错误状态码: 404, 错误信息: {"error":"\u56fe\u7247\u4e0d\u5b58\u5728","image_id":"0cb2b4cd0ca4407a3fc0360f318c16b2"}
at top.tqx.demo_1.service.RagService.getBinaryRequest(RagService.java:202)
at top.tqx.demo_1.service.impl.ImageServiceImpl.getImage(ImageServiceImpl.java:165)
at top.tqx.demo_1.service.impl.ChatServiceImpl.findLocalImageUrl(ChatServiceImpl.java:261)
at top.tqx.demo_1.service.impl.ChatServiceImpl.processImageUrls(ChatServiceImpl.java:235)
at top.tqx.demo_1.service.impl.ChatServiceImpl.getSessionMessages(ChatServiceImpl.java:205)
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70586209]
Fetched SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70586209] from current transaction
==> Preparing: INSERT INTO user_answer ( user_id, question_id, question_type, answer_type, paper_id, session_id, user_answer, score, max_score, is_correct, grading_type, feedback, created_at, updated_at ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
==> Parameters: 1(Long), 806754e9-3951-4562-8641-553c42564ab8(String), subjective(String), practice(String), 68b2574e-e68b-486a-b86b-5426ab2e488b(String), grade_e099f4df(String), "加强吸烟场所维护可以确保设施良好,提升吸烟环境,让消费者更满意。"(String), 8.0(BigDecimal), 10.0(BigDecimal), 0(Integer), ai(String), 【亮点】
1. 学生答案简洁明了,能够抓住核心要点。
2. 对消费者满意度的表述准确。
【综合评价】
学生的答案基本符合要求,能够抓住主要观点,但在部分要点的表达上略显简略,建议进一步完善语言表述以提高准确性。
【评分详情】
- 要点1确保设施设备良好状态 (权重: 50%, 得分率: 80%)
评价: 学生答案提到了'确保设施良好',与要点基本一致,但未明确提到'设施设备'的完整表述。
- 要点2保障文明吸烟环境功能发挥 (权重: 30%, 得分率: 60%)
评价: 学生答案提到'提升吸烟环境',但未直接体现'保障文明吸烟环境功能发挥'的核心内容。
- 要点3提高消费者满意度 (权重: 20%, 得分率: 100%)
评价: 学生答案明确提到'让消费者更满意',与要点完全一致。
【可改进之处】
1. 未明确提及'设施设备'的完整表述。
2. 对'文明吸烟环境功能发挥'的理解不够深入。(String), 2026-06-10T13:44:41.140192733(LocalDateTime), 2026-06-10T13:44:41.140943974(LocalDateTime)
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70586209]
Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70586209]
Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70586209]
2026-06-10 13:44:41 - ========== 批改答案发生未知异常 ==========
2026-06-10 13:44:41 - 错误类型: org.springframework.dao.DataIntegrityViolationException
2026-06-10 13:44:41 - 错误信息:
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
### The error may exist in top/tqx/demo_1/mapper/UserAnswerMapper.java (best guess)
### The error may involve top.tqx.demo_1.mapper.UserAnswerMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO user_answer ( user_id, question_id, question_type, answer_type, paper_id, session_id, user_answer, score, max_score, is_correct, grading_type, feedback, created_at, updated_at ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
### Cause: java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
; Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
2026-06-10 13:44:41 - 可能的错误位置:
2026-06-10 13:44:41 - at top.tqx.demo_1.service.impl.UserAnswerServiceImpl.batchSaveAnswers:UserAnswerServiceImpl.java (行号: 98)
2026-06-10 13:44:41 - at top.tqx.demo_1.service.impl.UserAnswerServiceImpl$$SpringCGLIB$$0.batchSaveAnswers:<generated> (行号: -1)
2026-06-10 13:44:41 - at top.tqx.demo_1.controller.ExamController.saveUserAnswers:ExamController.java (行号: 583)
2026-06-10 13:44:41 - at top.tqx.demo_1.controller.ExamController.gradeAnswers:ExamController.java (行号: 416)
2026-06-10 13:44:41 - at top.tqx.demo_1.aspect.LogAspect.around:LogAspect.java (行号: 43)
2026-06-10 13:44:41 - at top.tqx.demo_1.controller.ExamController$$SpringCGLIB$$0.gradeAnswers:<generated> (行号: -1)
2026-06-10 13:44:41 - 完整堆栈:
org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
### The error may exist in top/tqx/demo_1/mapper/UserAnswerMapper.java (best guess)
### The error may involve top.tqx.demo_1.mapper.UserAnswerMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO user_answer ( user_id, question_id, question_type, answer_type, paper_id, session_id, user_answer, score, max_score, is_correct, grading_type, feedback, created_at, updated_at ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
### Cause: java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
; Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:258)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:107)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)
at jdk.proxy2/jdk.proxy2.$Proxy87.insert(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:272)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:59)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
at jdk.proxy2/jdk.proxy2.$Proxy107.insert(Unknown Source)
at top.tqx.demo_1.service.impl.UserAnswerServiceImpl.batchSaveAnswers(UserAnswerServiceImpl.java:98)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:354)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:716)
at top.tqx.demo_1.service.impl.ChatServiceImpl$$SpringCGLIB$$0.getSessionMessages(<generated>)
at top.tqx.demo_1.controller.AIChatController.getSessionDetail(AIChatController.java:227)
at jdk.internal.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:392)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:720)
at top.tqx.demo_1.service.impl.UserAnswerServiceImpl$$SpringCGLIB$$0.batchSaveAnswers(<generated>)
at top.tqx.demo_1.controller.ExamController.saveUserAnswers(ExamController.java:583)
at top.tqx.demo_1.controller.ExamController.gradeAnswers(ExamController.java:416)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:354)
@@ -81,7 +172,8 @@ java.io.IOException: 调用RAG服务失败: RAG服务返回错误状态码: 404,
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
at top.tqx.demo_1.aspect.LogAspect.around(LogAspect.java:43)
at jdk.internal.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:637)
@@ -93,7 +185,7 @@ java.io.IOException: 调用RAG服务失败: RAG服务返回错误状态码: 404,
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:720)
at top.tqx.demo_1.controller.AIChatController$$SpringCGLIB$$0.getSessionDetail(<generated>)
at top.tqx.demo_1.controller.ExamController$$SpringCGLIB$$0.gradeAnswers(<generated>)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
@@ -107,8 +199,8 @@ java.io.IOException: 调用RAG服务失败: RAG服务返回错误状态码: 404,
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:914)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:590)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:206)
@@ -148,467 +240,43 @@ java.io.IOException: 调用RAG服务失败: RAG服务返回错误状态码: 404,
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: RAG服务返回错误状态码: 404, 错误信息: {"error":"\u56fe\u7247\u4e0d\u5b58\u5728","image_id":"0cb2b4cd0ca4407a3fc0360f318c16b2"}
at top.tqx.demo_1.service.RagService.getBinaryRequest(RagService.java:190)
... 88 common frames omitted
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@80c5035] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@125775329 wrapping com.mysql.cj.jdbc.ConnectionImpl@5ae44be2] will not be managed by Spring
==> Preparing: SELECT id,message_id,chunk_id,doc_path,doc_name,page,page_end,page_range,section,chunk_type,doc_type,section_chunk_id,excerpt,preview,bbox,bbox_mode,score,create_time FROM context_reference WHERE (message_id = ?)
==> Parameters: 170(Long)
<== Columns: id, message_id, chunk_id, doc_path, doc_name, page, page_end, page_range, section, chunk_type, doc_type, section_chunk_id, excerpt, preview, bbox, bbox_mode, score, create_time
<== Row: 355, 170, , null, 1.docx, 1, 1, 1, 2.地市公司营销中心采供部根据工业企业调运计划预计在途货源中本周可确定到货品种及数量。, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9960, 2026-06-02 08:13:17
<== Row: 356, 170, , null, 1.txt, 9, 9, 9, , text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.0040, 2026-06-02 08:13:17
<== Row: 357, 170, , null, 货源投放工作规范.docx, 1, 1, 1, 2.指标值与权重确定。 > ①指标值的确定:, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9400, 2026-06-02 08:13:17
<== Row: 358, 170, , null, 需求分析.docx, 1, 1, 1, 需求分析, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9820, 2026-06-02 08:13:17
<== Row: 359, 170, , null, 3.docx, 1, 1, 1, 第五篇 投入管理 > **第三章 投入标准**, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 08:13:17
<== Row: 360, 170, , null, test.docx, 1, 1, 1, 第五条 管理人员负责日常监督检查,定期核查登记台账、系统上传记录,对漏登、错登、代登等问题及时整改追责。, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9990, 2026-06-02 08:13:17
<== Row: 361, 170, , null, longrule.docx, 1, 1, 1, , text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9990, 2026-06-02 08:13:17
<== Row: 362, 170, , null, 2.docx, 1, 1, 1, 第六章 各类吸烟场所的建设标准 > **B1类** 大型商场、超市, table, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 08:13:17
<== Row: 363, 170, 1.docx_62, null, 1.docx, 1, 1, null, 3.按价位段自选投放工作指引 > **3.终端动销率公式。**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Row: 364, 170, 1.docx_94, null, 1.docx, 1, 1, null, 3.状态评价办法与标准。 > 备注:, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Row: 365, 170, 1.docx_22, null, 1.docx, 1, 1, null, 6.坚持区域协同、高效运作。 > **3.市场状态指标:**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Row: 366, 170, 1.docx_80, null, 1.docx, 1, 1, null, 1.市场状态的计算公式为: > 市场状态=+二级指标均值\*权重, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Row: 367, 170, 1.docx_90, null, 1.docx, 1, 1, null, 3.状态评价办法与标准。 > **(二)品规属性聚类评价**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Row: 368, 170, 1.docx_56, null, 1.docx, 1, 1, null, 3.按价位段自选投放工作指引 > **\*\*市场状态评价指标体系**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Row: 369, 170, 1.docx_79, null, 1.docx, 1, 1, null, 1.市场状态的计算公式为:, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 08:13:17
<== Total: 15
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@80c5035]
2026-06-02 10:17:30 - 响应 | 耗时: 137ms
curl -X GET "http://localhost:8080/api/ai/session/sess_1780387846575_3rnw6o00w" \
-H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwidXNlcm5hbWUiOiJhZG1pbiIsImlhdCI6MTc4MDM5NjI1OCwiZXhwIjoxNzgwNDAzNDU4fQ.Lxp1TpJKG1mVsIidkuhhPsgxrMH1nxhoBlJfcm4Q3M6zB_fqoCknzCeIGTIHcm0NFayxeMnrjRUBb4mL0l-wiA"
Connecting to 47.116.16.222:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-142-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Tue Jun 2 10:36:27 PM CST 2026
System load: 0.1 Processes: 157
Usage of /: 49.3% of 68.53GB Users logged in: 1
Memory usage: 47% IPv4 address for eth0: 172.24.53.43
Swap usage: 0%
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
Expanded Security Maintenance for Applications is not enabled.
5 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
6 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm
New release '24.04.4 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
1 updates could not be installed automatically. For more details,
see /var/log/unattended-upgrades/unattended-upgrades.log
*** System restart required ***
Welcome to Alibaba Cloud Elastic Compute Service !
Last login: Tue Jun 2 21:25:58 2026 from 112.2.253.193
root@iZuf69tvv5un8t8r0jvzn0Z:~# docker logs -f --tail 300 demo-app
<== Row: 69, 1.docx, resources/rule/总公司/1/v2/1.docx, 483352, application/vnd.openxmlformats-officedocument.word, .docx, null, 1, 1, <<BLOB>>, 1, rule, null, 1, 1, dept_1_kb/1.docx, 2026-06-02 14:05:52, 2026-06-02 14:14:10, INDEXED, <<BLOB>>, GENERATED, EXAM_GENERATED, 题目生成完成
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2e7d3373]
2026-06-02 14:34:23 - 响应 | 耗时: 38ms
<== Total: 3
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7e56456d]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5b7053c7] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@63894377 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5b7053c7]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4599b09e] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@481181057 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,dept_name,dept_code,parent_id,dept_level,dept_type,manager_id,status,sort_order,remark,create_time,update_time FROM department WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, dept_name, dept_code, parent_id, dept_level, dept_type, manager_id, status, sort_order, remark, create_time, update_time
<== Row: 1, 总公司, HEADQUARTERS_MAIN, 0, 1, HEADQUARTERS, null, 1, 0, 集团总公司, 2026-04-27 09:22:57, 2026-04-27 09:36:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4599b09e]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@798e5451] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1897596606 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@798e5451]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@aab1589] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@26014801 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,dept_name,dept_code,parent_id,dept_level,dept_type,manager_id,status,sort_order,remark,create_time,update_time FROM department WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, dept_name, dept_code, parent_id, dept_level, dept_type, manager_id, status, sort_order, remark, create_time, update_time
<== Row: 1, 总公司, HEADQUARTERS_MAIN, 0, 1, HEADQUARTERS, null, 1, 0, 集团总公司, 2026-04-27 09:22:57, 2026-04-27 09:36:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@aab1589]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@17f9c337] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1160551196 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@17f9c337]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@527fc3bc] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@189153983 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,dept_name,dept_code,parent_id,dept_level,dept_type,manager_id,status,sort_order,remark,create_time,update_time FROM department WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, dept_name, dept_code, parent_id, dept_level, dept_type, manager_id, status, sort_order, remark, create_time, update_time
<== Row: 1, 总公司, HEADQUARTERS_MAIN, 0, 1, HEADQUARTERS, null, 1, 0, 集团总公司, 2026-04-27 09:22:57, 2026-04-27 09:36:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@527fc3bc]
2026-06-02 14:34:23 - 响应 | 耗时: 58ms
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@59499ce7] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1326040202 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@59499ce7]
2026-06-02 14:34:23 - 请求 | URL: http://47.116.16.222/api/ai/sessions | 方法: GET | IP: 112.2.253.199
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@725fe044] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1743053900 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@725fe044]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@ce76c9d] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@20443269 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (user_id = ?) ORDER BY create_time DESC
==> Parameters: 1(Long)
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 65, sess_1780410472658_9qg9a9hhp, 1, <<BLOB>>, 2026-06-02 14:27:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@ce76c9d]
2026-06-02 14:34:23 - 响应 | 耗时: 5ms
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7cbe5b14] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@156517454 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7cbe5b14]
2026-06-02 14:34:23 - 请求 | URL: http://47.116.16.222/api/user/1 | 方法: GET | IP: 112.2.253.199
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@899bce8] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@108081172 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@899bce8]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4daedb18] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@143999161 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,dept_name,dept_code,parent_id,dept_level,dept_type,manager_id,status,sort_order,remark,create_time,update_time FROM department WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, dept_name, dept_code, parent_id, dept_level, dept_type, manager_id, status, sort_order, remark, create_time, update_time
<== Row: 1, 总公司, HEADQUARTERS_MAIN, 0, 1, HEADQUARTERS, null, 1, 0, 集团总公司, 2026-04-27 09:22:57, 2026-04-27 09:36:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4daedb18]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@491cfb00] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1926340384 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT r.* FROM role r INNER JOIN user_role ur ON r.id = ur.role_id WHERE ur.user_id = ?
==> Parameters: 1(Long)
<== Columns: id, uuid, role_name, role_code, role_type, description, status, sort_order, create_time, update_time
<== Row: 1, dad50ea8-392f-11f1-8d4f-7cb566b7fb8c, 系统管理员, admin, 1, 系统管理员,拥有所有权限, 1, 1, 2026-04-16 09:01:52, 2026-04-16 09:01:52
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@491cfb00]
2026-06-02 14:34:23 - 响应 | 耗时: 5ms
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1c882f2c] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@293497846 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1c882f2c]
2026-06-02 14:34:23 - 请求 | URL: http://47.116.16.222/api/ai/session/sess_1780410472658_9qg9a9hhp | 方法: GET | IP: 112.2.253.199
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@39ce6e88] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1684195282 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@39ce6e88]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4e0779c2] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@74966180 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (user_id = ?) ORDER BY create_time DESC
==> Parameters: 1(Long)
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6c750e8f] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1797211410 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 65, sess_1780410472658_9qg9a9hhp, 1, <<BLOB>>, 2026-06-02 14:27:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4e0779c2]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@797c62be] was not registered for synchronization because synchronization is not active
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
JDBC Connection [HikariProxyConnection@213966138 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (session_id = ?)
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
==> Parameters: sess_1780410472658_9qg9a9hhp(String)
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6c750e8f]
2026-06-02 14:34:23 - 请求 | URL: http://47.116.16.222/api/ai/session/sess_1780410472658_9qg9a9hhp | 方法: GET | IP: 112.2.253.199
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 65, sess_1780410472658_9qg9a9hhp, 1, <<BLOB>>, 2026-06-02 14:27:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@797c62be]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@e34ef1f] was not registered for synchronization because synchronization is not active
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@32a8cb9a] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1986902582 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,username,password,real_name,email,phone,avatar,user_type,status,dept_id,last_login_time,create_time,update_time FROM user WHERE id=?
==> Parameters: 1(Long)
JDBC Connection [HikariProxyConnection@340202997 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,conversation_id,role,content,message_type,is_finished,summary,kb_paths,answer,mode,duration_ms,images,sources,create_time FROM context_message WHERE (conversation_id = ?) ORDER BY create_time ASC
==> Parameters: 65(Long)
<== Columns: id, username, password, real_name, email, phone, avatar, user_type, status, dept_id, last_login_time, create_time, update_time
<== Row: 1, admin, $2a$10$o/mdlaGbhm7Fm0yrYFGICODFyqYUu/cd9Nj1xzc/qD9r3ukNZQr8W, 系统管理员, admin@system.com, 13800000000, null, 1, 1, 1, null, 2026-04-16 09:05:15, 2026-05-10 19:08:59
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@32a8cb9a]
<== Columns: id, conversation_id, role, content, message_type, is_finished, summary, kb_paths, answer, mode, duration_ms, images, sources, create_time
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@267a41] was not registered for synchronization because synchronization is not active
<== Row: 175, 65, assistant, <<BLOB>>, rag, 1, <<BLOB>>, <<BLOB>>, <<BLOB>>, null, 75512, <<BLOB>>, <<BLOB>>, 2026-06-02 14:29:09
<== Row: 176, 65, assistant, <<BLOB>>, rag, 1, <<BLOB>>, <<BLOB>>, <<BLOB>>, null, 97190, <<BLOB>>, <<BLOB>>, 2026-06-02 14:32:03
<== Total: 2
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@e34ef1f]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6366151e] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1957074372 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (user_id = ?) ORDER BY create_time DESC
==> Parameters: 1(Long)
JDBC Connection [HikariProxyConnection@1250116218 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,message_id,chunk_id,doc_path,doc_name,page,page_end,page_range,section,chunk_type,doc_type,section_chunk_id,excerpt,preview,bbox,bbox_mode,score,create_time FROM context_reference WHERE (message_id = ?)
==> Parameters: 175(Long)
<== Columns: id, message_id, chunk_id, doc_path, doc_name, page, page_end, page_range, section, chunk_type, doc_type, section_chunk_id, excerpt, preview, bbox, bbox_mode, score, create_time
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 65, sess_1780410472658_9qg9a9hhp, 1, <<BLOB>>, 2026-06-02 14:27:53
<== Row: 393, 175, , null, 1.docx, 1, 1, 1, 1.市场状态的计算公式为:, image, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:29:09
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@267a41]
<== Row: 394, 175, , null, 3.docx, 1, 1, 1, 第六章 附则 > (不公开), text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:29:09
<== Row: 395, 175, , null, 2.docx, 1, 1, 1, 4.终端类型维护 > **(一)运营指导**, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:29:09
Creating a new SqlSession
<== Row: 396, 175, , null, test.docx, 1, 1, 1, \## 第一章 总则, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9990, 2026-06-02 14:29:09
<== Row: 397, 175, 1.docx_24, null, 1.docx, 1, 1, null, 6.坚持区域协同、高效运作。 > **(一)统一货源投放周期**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:29:09
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@52466c06] was not registered for synchronization because synchronization is not active
<== Total: 5
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6366151e]
JDBC Connection [HikariProxyConnection@1635905661 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,session_id,user_id,summary,create_time FROM context_conversation WHERE (session_id = ?)
==> Parameters: sess_1780410472658_9qg9a9hhp(String)
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@59860f83] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@169553736 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,image_id,filename,path,size_bytes,format,source,page,page_end,page_range,section,chunk_type,type,description,full_description,score,collection,create_time FROM context_image WHERE (image_id = ?)
==> Parameters: 49d2910b148d.jpg(String)
<== Columns: id, session_id, user_id, summary, create_time
<== Row: 65, sess_1780410472658_9qg9a9hhp, 1, <<BLOB>>, 2026-06-02 14:27:53
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@52466c06]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@47c5e224] was not registered for synchronization because synchronization is not active
<== Columns: id, image_id, filename, path, size_bytes, format, source, page, page_end, page_range, section, chunk_type, type, description, full_description, score, collection, create_time
<== Row: 7, 49d2910b148d.jpg, null, img/49d2910b148d.jpg, 3004, JPEG, 1.docx, 1, null, null, null, null, image, <<BLOB>>, <<BLOB>>, 10.9000, null, 2026-06-02 14:32:03
JDBC Connection [HikariProxyConnection@637702278 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,conversation_id,role,content,message_type,is_finished,summary,kb_paths,answer,mode,duration_ms,images,sources,create_time FROM context_message WHERE (conversation_id = ?) ORDER BY create_time ASC
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@59860f83]
==> Parameters: 65(Long)
2026-06-02 14:34:23 - 图片URL已转换: imageId=49d2910b148d.jpg, nginxUrl=/files/img/49d2910b148d.jpg
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4b11dd4] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1831006422 wrapping com.mysql.cj.jdbc.ConnectionImpl@135636f5] will not be managed by Spring
==> Preparing: SELECT id,message_id,chunk_id,doc_path,doc_name,page,page_end,page_range,section,chunk_type,doc_type,section_chunk_id,excerpt,preview,bbox,bbox_mode,score,create_time FROM context_reference WHERE (message_id = ?)
==> Parameters: 176(Long)
<== Columns: id, conversation_id, role, content, message_type, is_finished, summary, kb_paths, answer, mode, duration_ms, images, sources, create_time
<== Row: 175, 65, assistant, <<BLOB>>, rag, 1, <<BLOB>>, <<BLOB>>, <<BLOB>>, null, 75512, <<BLOB>>, <<BLOB>>, 2026-06-02 14:29:09
<== Row: 176, 65, assistant, <<BLOB>>, rag, 1, <<BLOB>>, <<BLOB>>, <<BLOB>>, null, 97190, <<BLOB>>, <<BLOB>>, 2026-06-02 14:32:03
<== Total: 2
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@47c5e224]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@234566b3] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1274635325 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,message_id,chunk_id,doc_path,doc_name,page,page_end,page_range,section,chunk_type,doc_type,section_chunk_id,excerpt,preview,bbox,bbox_mode,score,create_time FROM context_reference WHERE (message_id = ?)
==> Parameters: 175(Long)
<== Columns: id, message_id, chunk_id, doc_path, doc_name, page, page_end, page_range, section, chunk_type, doc_type, section_chunk_id, excerpt, preview, bbox, bbox_mode, score, create_time
<== Row: 398, 176, , null, 1.docx, 1, 1, 1, 6.坚持区域协同、高效运作。 > **(三)确定周供应总量的主要依据**, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9990, 2026-06-02 14:32:03
<== Row: 399, 176, , null, 2.docx, 1, 1, 1, 2.诚信守法经营,三年内无违法记录。 > **零售终端日常维护申请表**, table, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9980, 2026-06-02 14:32:03
<== Row: 400, 176, , null, 3.docx, 1, 1, 1, 2.日常维护管理内容: > A2卫生医疗机构和各类院校, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:32:03
<== Row: 401, 176, 1.docx_22, null, 1.docx, 1, 1, null, 6.坚持区域协同、高效运作。 > **3.市场状态指标:**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Row: 402, 176, 1.docx_80, null, 1.docx, 1, 1, null, 1.市场状态的计算公式为: > 市场状态=+二级指标均值\*权重, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Columns: id, message_id, chunk_id, doc_path, doc_name, page, page_end, page_range, section, chunk_type, doc_type, section_chunk_id, excerpt, preview, bbox, bbox_mode, score, create_time
<== Row: 403, 176, 1.docx_62, null, 1.docx, 1, 1, null, 3.按价位段自选投放工作指引 > **3.终端动销率公式。**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Row: 393, 175, , null, 1.docx, 1, 1, 1, 1.市场状态的计算公式为:, image, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:29:09
<== Row: 404, 176, 1.docx_86, null, 1.docx, 1, 1, null, 2.指标值与权重确定。 > 一级指标合计权重不低于70%。, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Total: 7
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4b11dd4]
<== Row: 394, 175, , null, 3.docx, 1, 1, 1, 第六章 附则 > (不公开), text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:29:09
<== Row: 395, 175, , null, 2.docx, 1, 1, 1, 4.终端类型维护 > **(一)运营指导**, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:29:09
<== Row: 396, 175, , null, test.docx, 1, 1, 1, \## 第一章 总则, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9990, 2026-06-02 14:29:09
<== Row: 397, 175, 1.docx_24, null, 1.docx, 1, 1, null, 6.坚持区域协同、高效运作。 > **(一)统一货源投放周期**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:29:09
<== Total: 5
2026-06-02 14:34:23 - 响应 | 耗时: 21ms
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@234566b3]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@45eecdf8] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1293306632 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,image_id,filename,path,size_bytes,format,source,page,page_end,page_range,section,chunk_type,type,description,full_description,score,collection,create_time FROM context_image WHERE (image_id = ?)
==> Parameters: 49d2910b148d.jpg(String)
<== Columns: id, image_id, filename, path, size_bytes, format, source, page, page_end, page_range, section, chunk_type, type, description, full_description, score, collection, create_time
<== Row: 7, 49d2910b148d.jpg, null, img/49d2910b148d.jpg, 3004, JPEG, 1.docx, 1, null, null, null, null, image, <<BLOB>>, <<BLOB>>, 10.9000, null, 2026-06-02 14:32:03
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@45eecdf8]
2026-06-02 14:34:23 - 图片URL已转换: imageId=49d2910b148d.jpg, nginxUrl=/files/img/49d2910b148d.jpg
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5ecb72bd] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1836705169 wrapping com.mysql.cj.jdbc.ConnectionImpl@6dd60de9] will not be managed by Spring
==> Preparing: SELECT id,message_id,chunk_id,doc_path,doc_name,page,page_end,page_range,section,chunk_type,doc_type,section_chunk_id,excerpt,preview,bbox,bbox_mode,score,create_time FROM context_reference WHERE (message_id = ?)
==> Parameters: 176(Long)
<== Columns: id, message_id, chunk_id, doc_path, doc_name, page, page_end, page_range, section, chunk_type, doc_type, section_chunk_id, excerpt, preview, bbox, bbox_mode, score, create_time
<== Row: 398, 176, , null, 1.docx, 1, 1, 1, 6.坚持区域协同、高效运作。 > **(三)确定周供应总量的主要依据**, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9990, 2026-06-02 14:32:03
<== Row: 399, 176, , null, 2.docx, 1, 1, 1, 2.诚信守法经营,三年内无违法记录。 > **零售终端日常维护申请表**, table, other, null, <<BLOB>>, <<BLOB>>, null, null, 0.9980, 2026-06-02 14:32:03
<== Row: 400, 176, , null, 3.docx, 1, 1, 1, 2.日常维护管理内容: > A2卫生医疗机构和各类院校, text, other, null, <<BLOB>>, <<BLOB>>, null, null, 1.0000, 2026-06-02 14:32:03
<== Row: 401, 176, 1.docx_22, null, 1.docx, 1, 1, null, 6.坚持区域协同、高效运作。 > **3.市场状态指标:**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Row: 402, 176, 1.docx_80, null, 1.docx, 1, 1, null, 1.市场状态的计算公式为: > 市场状态=+二级指标均值\*权重, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Row: 403, 176, 1.docx_62, null, 1.docx, 1, 1, null, 3.按价位段自选投放工作指引 > **3.终端动销率公式。**, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Row: 404, 176, 1.docx_86, null, 1.docx, 1, 1, null, 2.指标值与权重确定。 > 一级指标合计权重不低于70%。, null, other, 0, <<BLOB>>, <<BLOB>>, null, null, null, 2026-06-02 14:32:03
<== Total: 7
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5ecb72bd]
2026-06-02 14:34:23 - 响应 | 耗时: 21ms
Caused by: java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`knowledge_management_system`.`user_answer`, CONSTRAINT `fk_user_answer_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`question_id`) ON DELETE CASCADE ON UPDATE RESTRICT)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:118)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:912)
at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:354)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)
at jdk.internal.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:58)
at jdk.proxy3/jdk.proxy3.$Proxy163.execute(Unknown Source)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:48)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:75)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
at jdk.proxy2/jdk.proxy2.$Proxy161.update(Unknown Source)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:106)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:59)
at jdk.proxy2/jdk.proxy2.$Proxy160.update(Unknown Source)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:425)
... 102 common frames omitted
2026-06-10 13:44:41 - 响应 | 耗时: 2889ms