|
|
@@ -17,24 +17,24 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|
|
public class Teacher_Student_OutIn_RecordUtil {
|
|
|
public void teacherInsertRecord(Db db, Long userId, String recordTime, String facePhoto,int status, String eventId) throws SQLException {
|
|
|
|
|
|
- String sql = "INSERT INTO teacher_out_in_record(create_date, user_id, record_time, face_photo, eventId, status) " +
|
|
|
+ String sql = "INSERT INTO teacher_out_in_record(create_date, user_id, record_time, face_photo, eventId, status,delete_mark,enabled_mark) " +
|
|
|
"VALUES(now(), '" + userId + "', '" + recordTime + "', '" +
|
|
|
- facePhoto + "', '" + eventId + "', '" +status + "')";
|
|
|
+ facePhoto + "', '" + eventId + "', '" +status + "',0,1)";
|
|
|
db.execute(sql);
|
|
|
}
|
|
|
|
|
|
public void studentInsertRecord(Db db, Long userId, Long teacherId, Long classId, String facePhoto, String recordTime, int status, String eventId) throws SQLException {
|
|
|
- String sql = "INSERT INTO student_out_in_record(create_date, user_id, teacher_id, class_id, face_photo, record_time , eventId,status) " +
|
|
|
+ String sql = "INSERT INTO student_out_in_record(create_date, user_id, teacher_id, class_id, face_photo, record_time , eventId,status,delete_mark,enabled_mark) " +
|
|
|
"VALUES(now(), '" + userId + "', '" + teacherId + "', '" +
|
|
|
- classId + "', '" + facePhoto + "', '" + recordTime + "', '" + eventId + "', '" + status + "')";
|
|
|
+ classId + "', '" + facePhoto + "', '" + recordTime + "', '" + eventId + "', '" + status + "',0,1)";
|
|
|
db.execute(sql);
|
|
|
}
|
|
|
|
|
|
|
|
|
public void visitInsertRecord(Db db, Long reservation_school_people_id, String recordTime,Long facePhoto, int status) throws SQLException {
|
|
|
- String sql = "INSERT INTO visitor_out_in_record(create_date, reservation_school_people_id, record_time, face_photo, status) " +
|
|
|
+ String sql = "INSERT INTO visitor_out_in_record(create_date, reservation_school_people_id, record_time, face_photo, status,delete_mark,enabled_mark) " +
|
|
|
"VALUES(now(), '" + reservation_school_people_id + "', '" +
|
|
|
- recordTime + "', '" + facePhoto + "', '" + status + "')";
|
|
|
+ recordTime + "', '" + facePhoto + "', '" + status + "',0,1)";
|
|
|
db.execute(sql);
|
|
|
}
|
|
|
|