修改定时任务

请求参数

参数名
类型
描述
必填
taskId
long
自动任务ID
必填
eqCode
string
示例:CODE123
必填
enable
int
使能(0关闭,1启用)
必填
taskName
string
任务名称
必填
timeMode
int
模式(0每天执行一次,1某天执行一次,2某段时间内循环执行)
必填
excuteTime
string
执行时间,必填(HH:mm:ss)
必填
excuteDate
string
执行时间,必填(HH:mm:ss)
必填
startTime
string
开始日期,timeMode为2时有值(yyyy-MM-dd)
必填
stopTime
string
结束日期,timeMode为2时有值(yyyy-MM-dd)
必填
taskType
int
任务类型
必填
isExcute
int
是否执行(0未执行,1执行)
必填
excuteDetail
string
任务详情
必填
excutes
[Object]
任务
必填
channel
string
通道号
必填
name
string
名称(任务名称 , 默认为 通道名称)
必填
sort
int
排序
必填
value
string
设置值(传感器需要设置数值时使用,无参数设置设备,值为 FF,控制型可设置流速设备比如肥泵,需要用到这个值)
必填
status
int
状态(0关闭,1开启,0000通道时该参数值失效)
必填

响应参数

参数名
类型
描述
必填
code
Int
返回200为登录成功,返回500登录失败
必填
takId
Long
任务ID
必填

说明 / 示例

{ "taskId": 0, "eqCode": "CODE123", "enable": 1, "taskName": "定时任务1", "timeMode": 0, "excuteTime": "12:00:00", "excuteDate": "2021-05-01", "startTime": "2021-05-01", "stopTime": "2022-05-01", "taskType": 0, "isExcute": 0, "excuteDetail": "", "excutes": [ { "channel": "3001", "name": "开启电磁阀1", "sort": 0, "value": "FF", "status": 1 }, { "channel": "0000", "name": "延迟1分钟", "sort": 1, "value": "1", "status": -1 }, { "channel": "3001", "name": "关闭电磁阀1", "sort": 2, "value": "FF", "status": 0 }, { "channel": "3002", "name": "打开电磁阀2", "sort": 3, "value": "FF", "status": 1 }, { "channel": "0000", "name": "延迟1分钟", "sort": 4, "value": "1", "status": -1 }, { "channel": "3002", "name": "关闭电磁阀2", "sort": 5, "value": "FF", "status": 0 } ] }