package cn.ezhizao.project.business.equipment.domain;

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
import cn.ezhizao.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;


/**
 * 设备类别对象 biz_equipment_category
 *
 * @author ezhizao
 * @date 2023-11-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "biz_equipment_category")
public class BizEquipmentCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备父级类别id
     */
    @ApiModelProperty(value = "设备父级类别id")
    private Long parentId;

    /**
     * 设备类别编码
     */
    @Excel(name = "设备类别编码")
    @ApiModelProperty(value = "设备类别编码")
    private String code;

    /** 租户id */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;

    /**
     * 设备类别名称
     */
    @Excel(name = "设备类别名称")
    @ApiModelProperty(value = "设备类别名称")
    private String name;

    /**
     * 设备类别描述
     */
    @Excel(name = "设备类别描述")
    @ApiModelProperty(value = "设备类别描述")
    private String remark;

    /**
     * 设备类别排序
     */
    @Excel(name = "设备类别排序")
    @ApiModelProperty(value = "设备类别排序")
    private Integer sort;


    /* ********************************************* 虚字段 ********************************************* */

    /** 子类别 */
    @TableField(exist = false)
    private List<BizEquipmentCategory> children;

    @TableField(exist = false)
    private String Label;
    @TableField(exist = false)
    private Long Value;

}
