Pārlūkot izejas kodu

考勤统计,统计时包含当天的,重新拉取数据并固化考勤数据

dzx 1 mēnesi atpakaļ
vecāks
revīzija
ff7b64a24d

+ 6 - 6
src/main/java/com/xjrsoft/module/hikvision/util/OutInRecordUtil.java

@@ -39,12 +39,12 @@ public class OutInRecordUtil {
                 " WHERE NOT EXISTS (SELECT 1 FROM teacher_out_in_record WHERE eventId = '" + eventId + "')";
         SqlRunnerAdapter.db().insert(sql);
 
-        String updSql = "UPDATE attendance_user_relation SET " +
-                "attendance_status = '" + attendanceStatus + "', " +
-                "attendance_time = '" + recordTime + "', " +
-                "attendance_mode = '人脸' " +
-                "WHERE user_id = '" + userId + "' AND delete_mark = 0";
-        SqlRunnerAdapter.db().update(updSql);
+//        String updSql = "UPDATE attendance_user_relation SET " +
+//                "attendance_status = '" + attendanceStatus + "', " +
+//                "attendance_time = '" + recordTime + "', " +
+//                "attendance_mode = '人脸' " +
+//                "WHERE user_id = '" + userId + "' AND delete_mark = 0";
+//        SqlRunnerAdapter.db().update(updSql);
     }
 
     private void studentInsertRecord(Long userId, Long teacherId, Long classId, String facePhoto, String recordTime, int status, String eventId, String attendanceStatus){