package com.skr.mdm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @className: AuLabelDo
 * @outher:    Tty
 * @date:      2020/7/22 15:52
 */
@Data
@TableName(value = "au_label")
public class AuLabelDO implements Serializable {

    private Integer id;

    /**
     * 标签名称
     */
    private String labelName;

    /**
     * 标签类型（1：静态标签 2：动态标签）
     */
    private String labelType;

    /**
     * 归属于哪个公司
     */
    private Integer companyId;

	// 设备状态
	private String deviceStatus;

	// 部门id
	private String departmentId;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private Integer[] userIds;

    private static final long serialVersionUID = 1L;

}