huang
5 天以前 9571229a2013472dc701ecf5767f2873b36d8f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.mes.task.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
 
import java.io.Serializable;
import java.util.List;
import java.util.Map;
 
/**
 * 多设备任务参数
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "TaskParameters", description = "多设备任务执行参数")
public class TaskParameters implements Serializable {
 
    @ApiModelProperty(value = "玻璃ID列表(保持执行顺序),可为空表示由后台自动获取最近扫码的玻璃ID")
    private List<String> glassIds;
 
    @ApiModelProperty(value = "上大车位置编码")
    private String positionCode;
 
    @ApiModelProperty(value = "上大车位置值")
    private Integer positionValue;
 
    @ApiModelProperty(value = "大理片加工类型")
    private Integer processType;
 
    @ApiModelProperty(value = "玻璃存储位置")
    private Integer storagePosition;
 
    @ApiModelProperty(value = "执行间隔(毫秒)")
    private Integer executionInterval;
 
    @ApiModelProperty(value = "单片间隔(毫秒),多个玻璃ID时每个玻璃ID之间的间隔时间,0表示一次性全部传递")
    private Integer glassIntervalMs;
 
    @ApiModelProperty(value = "是否在任务开始前先触发请求(plcRequest),仅在未提供玻璃ID时生效,默认true")
    private Boolean triggerRequestFirst;
 
    @ApiModelProperty(value = "任务超时时间(分钟),默认30分钟")
    private Integer timeoutMinutes;
 
    @ApiModelProperty(value = "重试次数,默认3次")
    private Integer retryCount;
 
    @ApiModelProperty(value = "设备级别参数覆盖,key可以是设备类型或设备编码")
    private Map<String, Map<String, Object>> deviceOverrides;
 
    @ApiModelProperty(value = "额外透传参数")
    private Map<String, Object> extra;
}