版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。
评论: Migration of unmigrated content due to installation of a new plugin

6.1、查询门禁记录

Wiki 标记
\[TOC\]

简要描述

  • 查询门禁记录列表

请求URL

  • http://\{uri}/facility/attendance/list

请求方式

  • GET

参数

参数名

必选

类型

说明

projectId

Long

项目ID

identityCard

String

身份证

name

String

姓名

attenDevice

String

考勤设备

attenTime

Date

考勤时间

beginTime

Date

开始时间

endTime

Date

结束时间

返回示例

Wiki 标记
\{
  "total": 161,
  "rows": \[
    \{
      "createTime": "2023-02-22 14:55:33",
      "updateTime": null,
      "remark": null,
      "attenId": "166604382261301248",
      "projectId": 164443836015530000,
      "identityCard": "13230219760622321X",
      "name": "王红刚",
      "similar": "84",
      "attenImage": "http://153.99.44.234:22601/statics/2023/02/22/99b0c84d-3ba4-4739-9290-8b21bc8492c9.jpeg",
      "attenDevice": "32306",
      "attenTime": "2023-02-22",
      "temperature": 0,
      "beginTime": null,
      "endTime": null
    \}, 
    \{...\}
    \],
  "code": 200,
  "msg": "查询成功"
\}

返回基本参数说明

参数名

类型

说明

total

Long

总记录数

rows

List

列表数据

code

int

消息状态码

msg

String

消息内容

返回参数说明

参数名

类型

说明

attenId

Long

考勤id

projectId

Long

项目ID

identityCard

string

身份证

name

string

姓名

similar

string

脸部相似度

attenImage

string

考勤照片

attenDevice

string

考勤设备

attenTime

Date

考勤时间

体温

BigDecimal

temperature

delFlag

string

删除标志(0代表存在 2代表删除)

beginTime

Date

开始时间

endTime

Date

结束时间

备注

  • 更多返回错误代码请看首页的错误代码描述

6.2、获取门禁记录详细信息

Wiki 标记
\[TOC\]

简要描述

  • 获取门禁记录详细信息

请求URL

  • http://\{uri}/facility/attendance/{attenId}

请求方式

  • GET

参数

参数名

必选

类型

说明

attenId

Long

考勤id

返回示例

{
"msg": "操作成功",
"code": 200,
"data": {
"createTime": "2023-02-16 16:04:46",
"updateTime": null,
"remark": null,
"attenId": "16440377800704",
"projectId": 16444380530000,
"identityCard": "211321199712100675",
"name": "宋**",
"similar": "84",
"attenImage": "http://127.0.0.1:22601/staqics/2023/02/16/15403ec9-5ae6-40fc-b225-e8dbc8e32d74.jpeg",
"attenDevice": "3109",
"attenTime": "2022-03-10",
"temperature": 0,
"beginTime": null,
"endTime": null
}
}

返回基本参数说明

参数名

类型

说明

data

Object

数据

code

int

消息状态码

msg

String

消息内容

返回参数说明

参数名

类型

说明

createTime

Date

创建时间

updateTime

Date

更新时间

remark

string

备注

attenId

Long

考勤id

projectId

Long

项目ID

identityCard

string

身份证

name

string

姓名

similar

string

脸部相似度

attenImage

string

考勤照片

attenDevice

string

考勤设备

attenTime

Date

考勤时间

temperature

BigDecimal

体温

delFlag

string

删除标志(0代表存在 2代表删除)

beginTime

Date

开始时间

endTime

Date

结束时间

备注

  • 更多返回错误代码请看首页的错误代码描述

6.3、发送考勤

Wiki 标记
\[TOC\]

简要描述

  • 设备考勤接口

请求URL

  • http://\{uri}/facility/detection/device/dcit/api/eq/v1/record/opendoor

请求方式

  • POST

参数

参数名

必选

类型

说明

pcode

int

设备编码 param格式 拼接在url中

userId

string

用户id

type

string

开门类型(PASSWORD,APP,FACE,CARD,RCARD,IDCARD)

data

string

卡号/密码/二维码

screenTime

string

开门时间 时间戳(s)

pic

string

base64考勤照片

temperature

string

测温数据

openState

string

开门状态;1-继电器有输出信号(已开门);2-继电器没有输出信号(未开门);0-未知

acsState

string

通行方向状态;1-出;0-进(默认0)

idCardInfo

json

身份证信息对象

name

string

姓名

gender

string

性别

national

string

民族

birthday

string

生日

address

string

住址

id

string

身份证号

maker

string

颁发机构

startDate

string

起始日期

endDate

string

有效期

idCardImg

string

base64编码的身份证照片数据

请求示例

{
"userId": "132",
"type": "CARD",
"data": "62817dec",
"screenTime": "1548136853",
"recordurl": "xxx.com",
"pic": "base64编码数据",
"temperature":"36.35",
"openState":1,
"acsState":0,
"idCardInfo":{
"name":"张三",
"gender":"男",
"national":"汉族",
"birthday":"1996-11-22",
"address":"湖南省永州市xxx县xxx村xxx号",
"id":"43112319961122xxxx",
"maker":"xxx县公安局",
"startDate":"2012-11-22",
"endDate":"2022-11-22",
"idCardImg":"base64编码的身份证照片"
}
}

返回参数说明

参数名

类型

说明

retCode

int

消息状态码

message

int

消息内容

备注

  • 更多返回错误代码请看首页的错误代码描述