package com.vctgo.system.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vctgo.common.core.annotation.Excel;
import com.vctgo.common.core.web.domain.TenantEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 位置与区域关联对象 sys_re_location_area
 *
 * @author caesar
 * @date 2023-05-30
 */
@Data
@TableName("sys_re_location_area")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(value = {"handler"})
public class SysReLocationArea extends TenantEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /** 位置Id */
    @Excel(name = "位置Id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long locationId;

    /** 班级id */
    @Excel(name = "区域id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long areaId;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDeleted;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long createById;

    /** 最近更新人ID */
    @Excel(name = "最近更新人ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long updateById;

    /** 区域名称 */
    @TableField(exist = false)
    private String areaName;

    /** 位置名称 */
    @TableField(exist = false)
    private String locationName;

    @TableField(exist = false)
    private List<SysClassSetting> sysClassSettingList;

    @TableField(exist = false)
    private String attribute;

}
