CollectionTask.java
1.21 KB
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
package com.viontech.fanxing.collect.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.fanxing.collect.config.ListTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;
import java.util.Date;
import java.util.List;
/**
* .
*
* @author 谢明辉
* @date 2022/3/9
*/
@Getter
@Setter
@Accessors(chain = true)
@TableName(value = "s_collection_task", autoResultMap = true)
public class CollectionTask {
@TableId(type = IdType.AUTO)
private Long id;
private String unid;
private String name;
private String dataType;
private String collectType;
private Date startTime;
private Date endTime;
@TableField(jdbcType = JdbcType.VARCHAR, typeHandler = ListTypeHandler.class)
private List<Long> tasks;
private Integer collectInterval;
private Integer videoLength;
@JsonIgnore
private byte[] configFile;
private Date createTime;
private Integer status;
}