|
|
@@ -0,0 +1,32 @@
|
|
|
+package com.usoftchina.smartschool.device.service;
|
|
|
+
|
|
|
+import com.usoftchina.smartschool.device.dto.AccessControlInfo;
|
|
|
+import com.usoftchina.smartschool.device.po.AccessControlRecord;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author yingp
|
|
|
+ * @date 2019/3/12
|
|
|
+ */
|
|
|
+public interface AccessControlService {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 处理门禁事件
|
|
|
+ *
|
|
|
+ * @param info
|
|
|
+ */
|
|
|
+ void onAccessControlEvent(AccessControlInfo info);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 按学号和时间期间查找
|
|
|
+ *
|
|
|
+ * @param stuNumber
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ List<AccessControlRecord> findByStuNumberAndDate(String stuNumber, Date beginDate, Date endDate);
|
|
|
+
|
|
|
+}
|