From 9ee8cfe2cc07bdadd88ea5fb56152d7911302eff Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 4 Feb 2026 19:02:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=9C=88=E5=BA=A6?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=84=9A=E6=9C=AC=E9=83=A8=E9=97=A8=E8=A1=A8?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将修复脚本中的部门表改为 sys_dept,避免执行时报表不存在。 --- database/repair_monthly_scores.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/repair_monthly_scores.sql b/database/repair_monthly_scores.sql index 7510723..a559c2f 100644 --- a/database/repair_monthly_scores.sql +++ b/database/repair_monthly_scores.sql @@ -46,7 +46,7 @@ INSERT INTO dept_monthly_score SELECT e.dept_id, dept.dept_name, @year, @month, e.earned_score, 0, e.earned_score, e.completed_task_count, 0, 0, NOW(), NOW() FROM tmp_monthly_earned e -JOIN department dept ON dept.id = e.dept_id +JOIN sys_dept dept ON dept.id = e.dept_id LEFT JOIN dept_monthly_score d ON d.dept_id = e.dept_id AND d.year = @year AND d.month = @month WHERE d.id IS NULL;