Browse Source

限制返回数据

Pchen. 3 months ago
parent
commit
c380e8f601
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Lepao/Record/GetRecordDetail.js

+ 1 - 1
apis/Lepao/Record/GetRecordDetail.js

@@ -47,7 +47,7 @@ class GetRecordDetail extends API {
                 ON 
                     r.lepao_account = a.student_num
                 WHERE 
-                    (r.uuid = ? OR (a.create_user IS NOT NULL AND a.create_user = ?)) AND r.id = ?
+                    (r.uuid = ? OR (a.create_user IS NOT NULL AND a.create_user = ?)) AND r.id = ? AND r.state = 1
             `
         let rows = await db.query(sql, [uuid, uuid, id])