Fix JOIN sql command
This commit is contained in:
@@ -3261,7 +3261,7 @@ def attendance_report():
|
||||
CONCAT(e.firstName, ' ', e.lastName) as employee_name
|
||||
FROM attendance_data ad
|
||||
LEFT JOIN qr_codes qc ON ad.qr_code_id = qc.id
|
||||
LEFT JOIN employee e ON ad.employee_id = e.id
|
||||
LEFT JOIN employee e ON CAST(ad.employee_id AS CHAR) = CAST(e.id AS CHAR)
|
||||
WHERE 1=1
|
||||
"""
|
||||
else:
|
||||
@@ -3284,7 +3284,7 @@ def attendance_report():
|
||||
CONCAT(e.firstName, ' ', e.lastName) as employee_name
|
||||
FROM attendance_data ad
|
||||
LEFT JOIN qr_codes qc ON ad.qr_code_id = qc.id
|
||||
LEFT JOIN employee e ON ad.employee_id = e.id
|
||||
LEFT JOIN employee e ON CAST(ad.employee_id AS CHAR) = CAST(e.id AS CHAR)
|
||||
WHERE 1=1
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user