fix: 修正月度积分脚本部门表名
将修复脚本中的部门表改为 sys_dept,避免执行时报表不存在。
This commit is contained in:
parent
67b8cb7991
commit
9ee8cfe2cc
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user