CollectionTask.java 1.21 KB
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;

}