文档
测试

三违记录列表

GET
{{url}}/operation/1.1/violations?createUser=1&userId=1&deptId=1&status=0

请求头

参数名
类型
描述
必填
token
string
示例:fd1a897cf99bdf9af37de45b920168ca01014e0000df48be5d000000445f0068
必填

示例

请求参数: ``` type=1违规类型1违章操作行为,2违章指挥行为,3违反劳动纪律行为 status=1处理状态0未处理1已处理2已关闭 address=xxx userId=1 违规人名称 createUser=1 userId=1 deptId=1 ``` 响应体: ``` { "limit": 10, "total": 1, "data": [ { "id": 3, "type": 1, "description": "de", "deptId": 1, "deptName": "测试租户", "userId": 1, "userName": "管理员", "createUser": 1, "createUserName": "管理员", "address": "add", "violationTime": "2020-09-29 09:43:03", "imgUrl": "[\"MzEzMTAxOjAzNzAzMzY4NzZiOjYyMzM6MTM1NHzmlbXmlLrlm7_niYgzL3FvaHw2MTE2fC9xb2h8LjJ8LjI\",\"MzEzMTAxOjAzNzAzMzY4NzZiNWIyMmU4NzRiNnzmlbXmlLrlm7_niYgyL3FvaHw1OjQyfC9xb2h8LjJ8LjI\"]';", "handlerUser": 1, "handlerUserName": "管理员", "status": 1, "tenantId": 1, "createTime": "2020-09-29 09:42:54", "updateTime": "2020-09-29 09:44:35", "handlerTime": "2020-09-29 09:44:29", "handlerAccording": "xxx", "handlerFine": "50", "handlerresult": 12, "handlerRealUser": 34, "handlerRealUserName": "xxx" }, { "id": 2, "type": 1, "description": "description", "deptId": 1, "deptName": "测试租户", "userId": 1, "userName": "管理员", "createUser": 1, "createUserName": "管理员", "address": "address", "violationTime": "2020-09-13 12:00:00", "imgUrl": "", "handlerUser": 1, "handlerUserName": "管理员", "status": 0, "tenantId": 1, "createTime": "2020-09-26 09:10:14", "updateTime": "2020-09-13 11:16:29", "handlerTime": null, "handlerAccording": null, "handlerFine": null, "handlerresult": null, "handlerRealUser": null, "handlerRealUserName": null } ], "offset": 0 } ```

请求参数说明

参数名
类型
描述
必填
createUser
int
上报人 示例:1
必填
userId
int
违规人 示例:1
必填
deptId
int
违规部门 示例:1
必填
status
int
状态 示例:0
必填

响应参数说明

参数名
类型
描述
必填
limit
int
获取行数
必填
total
int
总行数 示例:4
必填
offset
int
偏移位置
必填
data
array
数据列表
必填
deptName
string
违规部门名称 示例:xxx
必填
handlerUserName
string
处理人名称 示例:123
必填
address
string
违规发生地 示例:address
必填
deptId
int
违规部门 示例:1
必填
description
string
违规行为描述 示例:description
必填
createUserName
string
上报人姓名 示例:123
必填
updateTime
string
处理时间 示例:2020-09-13 11:16:29
必填
type
int
违规类型1违章操作行为,2违章指挥行为,3违反劳动纪律行为 示例:1
必填
userName
string
违规人名称 示例:123
必填
userId
int
违规人示例:1
必填
imgUrl
string
违规现场照片
必填
createTime
string
上班时间 示例:0000-00-00 00:00:00
必填
handlerUser
int
违规处理人 示例:1
必填
tenantId
int
租户 示例:1
必填
violationTime
string
违规发生时间 示例:2020-09-13 12:00:00
必填
createUser
int
上报人 示例:1
必填
id
int
id 示例:2
必填
status
int
处理状态0未处理1已处理2已关闭 示例:1
必填
handlerTime
string
处理时间
必填
handlerAccording
string
处理依据
必填
handlerFine
string
罚款金额
必填
handlerresult
int
处理结果:0:关闭 11:警告 12:罚款
必填
handlerRealUser
int
实际处理人
必填
handlerRealUserName
string
实际处理人名称
必填