文档
测试

获取保养任务

POST
http://localhost:30010/api/upkeeps/UpkeepTask/getList

请求头

参数名
类型
描述
必填
Authorization
string
bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIzNDkwNTc0MDcyMDk1NDEiLCJyblN0ciI6Ik1XbTdjN1ZsT0IxN0xacWxzNFF0MHRITU9LenllbDBhIiwidXNlcl9pZCI6IjM0OTA1NzQwNzIwOTU0MSIsInVzZXJfbmFtZSI6ImFkbWluIiwic2luZ2xlTG9naW4iOjIsImV4cCI6MTY5NDQ3MDY1MjY0NSwidG9rZW4iOiJsb2dpbl90b2tlbl80NzA5Mzc1MDQ0MDEzMzQ1OTcifQ.qtk0RoAdCPeQrqZa1WdAir6tt492fe0RnAzqHL19GJU
必填
jnpf-origin
string
示例:pc
必填
flag
必填

请求参数

参数名
类型
描述
必填
flag
int
示例:1 获取当日任务,0获取所有任务 2 获取30天内
可选
currentPage
int
当前页
必填
pageSize
int
当前页记录数
必填
dataType
int
是否为分页数据,0代表是
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:Success
必填
data
array
响应信息
必填
list
array
数据列表
必填
id
string
保养任务ID,示例:465804897816686725
必填
standby01
string
保养计划ID,示例:465769667424694277
必填
code
string
任务编码,示例:BY-20230828008
必填
name
string
任务名称,示例:高压配电柜AH02
必填
upkeepteam
string
保养队ID,示例:453221008803889477
必填
upkeepplace
string
保养地点ID,示例:463315203178631685
必填
plantime
int
计划用时,示例:55
必填
realtime
object
实际用时,示例:null
必填
errormax
int
正偏差,示例:5
必填
errormin
int
负偏差,示例:5
必填
needpeople
int
需求人数,示例:2
必填
plantype
string
计划类型,示例:内部
必填
enablemark
string
是否启用,示例:1
必填
notes
string
备注,示例:哈哈哈哈哈哈哈好
必填
upkeepsduration
int
保养时长,示例:null
必填
upkeepsuser
string
保养人,示例:null
必填
taskstarttime
long
保养时间,示例:null
必填
anomaliesnumber
int
异常数,示例:null
必填
confirmresult
string
确认结果,示例:null
必填
confirmmsg
string
问题描述,示例:null
必填
code_name
string
示例:BY-20230828008
必填
name_name
string
示例:高压配电柜AH02
必填
upkeepteam_name
string
示例:一期
必填
upkeepplace_name
string
示例:高压配电柜AH02
必填
plantime_name
int
示例:55
必填
realtime_name
string
示例:null
必填
errormax_name
int
示例:5
必填
errormin_name
int
示例:5
必填
needpeople_name
int
示例:2
必填
plantype_name
string
示例:内部
必填
enablemark_name
int
示例:1
必填
notes_name
string
示例:哈哈哈哈哈哈哈好
必填
upkeepsduration_name
int
示例:null
必填
upkeepsuser_name
string
示例:null
必填
taskstarttime_name
int
示例:null
必填
anomaliesnumber_name
int
示例:null
必填
confirmresult_name
string
示例:null
必填
confirmmsg_name
string
示例:null
必填
createtasktime
string
保养任务计划开始时间
必填
overtasktime
string
保养任务计划结束时间
必填
executionstatus
int
任务执行状态,0未开始 1进行中 2已完成
必填
tableField118
array
保养项
必填
id
string
保养项ID,示例:465770415126491141
必填
upkeepsid
string
名称,示例:电冰箱
必填
standard
string
保养基准,示例:制冷
必填
way
string
保养方法,示例:修
必填
starttime
object
保养开始时间,示例:null
必填
endtime
object
保养结束时间,示例:null
必填
upkeepsresult
int
保养结果 0正常 1异常,初始为 null
必填
assetsupkeepsworktoolsList
array
工器具
必填
name
string
名称,示例:1
必填
model
string
型号,示例:1
必填
count
int
数量,示例:1
必填
notes
string
备注,示例:1
必填
confirmtime
object
示例:null
必填
confirmoperation
object
示例:null
必填
restoreconfirm
object
示例:null
必填
restoretime
object
示例:null
必填
assetsupkeepsmeasureList
array
安全措施
必填
measure
string
安全措施,示例:2
必填
confirmtime
object
示例:null
必填
restoretime
object
示例:null
必填
pagination
object
分页信息
必填
currentPage
int
当前页,示例:1
必填
pageSize
int
每页记录数,示例:20
必填
total
int
总记录数
必填

响应 示例

````json { "code": 200, "msg": "Success", "data": { "list": [ { "id": "465859685090603333", "flowtaskid": null, "standby01": "465769667424694277", "createtasktime": "1693152000000", "overtasktime": "1693324800000", "code": "BY-20230828025", "name": "高压配电柜AH02", "upkeepteam": "453221008803889477", "upkeepplace": "463315203178631685", "executionstatus": 0, "plantime": 55, "realtime": null, "errormax": 5, "errormin": 5, "needpeople": 2, "plantype": "内部", "enablemark": "1", "notes": "哈哈哈哈哈哈哈好", "upkeepsduration": null, "upkeepsuser": null, "taskstarttime": null, "anomaliesnumber": null, "confirmresult": null, "confirmmsg": null, "code_name": "BY-20230828025", "name_name": "高压配电柜AH02", "upkeepteam_name": "一期", "upkeepplace_name": "高压配电柜AH02", "plantime_name": 55, "realtime_name": null, "errormax_name": 5, "errormin_name": 5, "needpeople_name": 2, "plantype_name": "内部", "enablemark_name": "1", "notes_name": "哈哈哈哈哈哈哈好", "upkeepsduration_name": null, "upkeepsuser_name": null, "taskstarttime_name": null, "anomaliesnumber_name": null, "confirmresult_name": null, "confirmmsg_name": null, "tableField118": [ { "id": "465770415126491141", "upkeepsid": "电冰箱", "standard": "制冷", "way": "修", "starttime": null, "endtime": null, "upkeepsresult": null, "assetsupkeepsworktoolsList": [ { "id": "464324227084856069", "name": "1", "model": "1", "count": 1, "notes": "1", "confirmtime": null, "confirmoperation": null, "restoreconfirm": null, "restoretime": null } ], "assetsupkeepsmeasureList": [ { "id": "464324227147770629", "measure": "2", "confirmtime": null, "restoretime": null } ] } ] } ], "pagination": { "currentPage": 1, "pageSize": 1, "total": 20 } } } ````