|
|
@@ -48,8 +48,8 @@ class InsertOutInRecordTaskTest {
|
|
|
private IHikvisionDataService hkvisionDataService;
|
|
|
@Test
|
|
|
void test2() throws ParseException {
|
|
|
- LocalDateTime startDateTime = LocalDateTime.of(2024,9,1,0,0,0);
|
|
|
- LocalDateTime endDateTime = LocalDateTime.of(2024,9,30,23,59,59);
|
|
|
+ LocalDateTime startDateTime = LocalDateTime.of(2025,12,1,0,0,0);
|
|
|
+ LocalDateTime endDateTime = LocalDateTime.of(2025,12,1,23,59,59);
|
|
|
Integer limit = 1;
|
|
|
Integer size = 1000;
|
|
|
ApiUtil apiUtil = new ApiUtil();
|
|
|
@@ -63,10 +63,7 @@ class InsertOutInRecordTaskTest {
|
|
|
paramJson.add("eventTypes", eventList);
|
|
|
|
|
|
JsonArray personIds = new JsonArray();
|
|
|
- personIds.add("C137");
|
|
|
- personIds.add("153310036502459");
|
|
|
- personIds.add("C139");
|
|
|
- personIds.add("14954809603013");
|
|
|
+ personIds.add("1827235568186601473");
|
|
|
|
|
|
paramJson.add("personIds", personIds);
|
|
|
paramJson.addProperty("sort", "eventTime");
|
|
|
@@ -84,7 +81,7 @@ class InsertOutInRecordTaskTest {
|
|
|
@Test
|
|
|
void test() throws ParseException {
|
|
|
//获取时间,并计算出前一天的开始时间和结束时间
|
|
|
- LocalDateTime now = LocalDateTime.of(2025, 9, 25, 0, 0, 0);
|
|
|
+ LocalDateTime now = LocalDateTime.of(2025, 12, 1, 0, 0, 0);
|
|
|
for (int i = 0; i < 1; i ++){
|
|
|
LocalDateTime startDateTime = now.plusDays(i).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
|
|
LocalDateTime endDateTime = startDateTime.plusDays(i).withHour(23).withMinute(59).withSecond(59);
|
|
|
@@ -102,11 +99,17 @@ class InsertOutInRecordTaskTest {
|
|
|
//Map<String, String> userIdMap = hikvisionDataService.getUserIdMap();
|
|
|
|
|
|
//教师&学生拉取数据
|
|
|
-// out_in_recordUtil.GetTeacherAndStudentRecords(faceImportMapper, startDateTime, endDateTime);
|
|
|
+ out_in_recordUtil.GetTeacherAndStudentRecords(faceImportMapper, startDateTime, endDateTime);
|
|
|
//拉取车辆数据
|
|
|
- out_in_recordUtil.GetVehicleRecord(faceImportMapper, startDateTime, endDateTime);
|
|
|
+// out_in_recordUtil.GetVehicleRecord(faceImportMapper, startDateTime, endDateTime);
|
|
|
//拉取访客数据
|
|
|
// out_in_recordUtil.GetVisitRecord(faceImportMapper, startDateTime, endDateTime);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void studentOutInRecord(){
|
|
|
+
|
|
|
+ out_in_recordUtil.discernStudentStatus(LocalDateTime.now(),0,1919957901258592258L);
|
|
|
+ }
|
|
|
}
|