Browse Source

🐞 fix: 修复考勤时间判断错误的问题

Pchen. 7 months ago
parent
commit
e56444c5a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/ClockIn/AddAttendanceRecord.js

+ 1 - 1
apis/ClockIn/AddAttendanceRecord.js

@@ -37,7 +37,7 @@ class AddAttendanceRecord extends API {
         }
 
         // 获取考勤项目
-        const sqlGetProject = 'SELECT user, day_of_week, loopy, begintime, endtime FROM kq_items WHERE id = ?';
+        const sqlGetProject = 'SELECT user, createTime, day_of_week, loopy, begintime, endtime FROM kq_items WHERE id = ?';
         let projectResult = await db.query(sqlGetProject, [project_id]);
 
         if (!projectResult || projectResult.length === 0) {