|
@@ -15,9 +15,11 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.io.IOException;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static org.jeecg.modules.app.ezt.GetEidToken.getEidToken;
|
|
|
+import static org.jeecg.modules.hikiot.HikiotTool.queryOpenDoorRecord;
|
|
|
|
|
|
@Slf4j
|
|
|
@Tag(name = "App用户相关接口")
|
|
@@ -93,4 +95,17 @@ public class AppUserController {
|
|
|
@RequestParam("name") @Schema(description = "姓名")String name) throws Exception {
|
|
|
return Result.ok(getEidToken(idCard,name));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Author SheepHy
|
|
|
+ * @Description 分页查询开门记录
|
|
|
+ * @Date 10:53 2025/8/25
|
|
|
+ **/
|
|
|
+ @Operation(summary="分页查询开门记录")
|
|
|
+ @GetMapping(value = "/listOpenDoor")
|
|
|
+ public Result<String> listOpenDoor(@RequestParam String employeeNos,
|
|
|
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize) throws IOException, InterruptedException {
|
|
|
+ return Result.OK(queryOpenDoorRecord(pageNo, pageSize, employeeNos));
|
|
|
+ }
|
|
|
}
|