Browse Source

🐞 fix: 修复乐跑记录筛选无效的问题

Pchen. 7 months ago
parent
commit
c867514dbf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apis/Lepao/Record/GetLepaoRecords.js

+ 2 - 2
apis/Lepao/Record/GetLepaoRecords.js

@@ -59,14 +59,14 @@ class GetLepaoRecords extends API {
                 ON 
                     r.lepao_account = a.student_num
                 WHERE 
-                    r.uuid = ? OR a.create_user = ?
+                    (r.uuid = ? OR a.create_user = ?)
             `
 
         let countSql = `
             SELECT COUNT(*) AS total
             FROM lepao_record r
             JOIN lepao_account a ON r.lepao_account = a.student_num
-            WHERE r.uuid = ? OR a.create_user = ?
+            WHERE (r.uuid = ? OR a.create_user = ?)
         `
 
         let params = [uuid, uuid]