package com.djhk.uav.uav.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.djhk.common.annotation.Excel;
import com.djhk.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 负载 对象 uav_load
 *
 * @author jiachengshuai
 * @date 2022-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UavLoad extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 负载表主键 */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String loadName;

    /** 无人机机型 */
    @TableField(exist = false)
    @Excel(name = "无人机机型")
    private String uavType;

    /** 型号 */
    @Excel(name = "型号")
    private String loadType;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 投入使用过时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投入使用过时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 能力名称 */
    @TableField(exist = false)
    private String abilityName;

    @TableField(exist = false)
    private List<UavLoadType> loadTypeList;

    @TableField(exist = false)
    private List<String> loadTypes;

    @TableField(exist = false)
    private List<UavLoadAbility> loadAbilityList;

    @TableField(exist = false)
    private List<String> loadAbilities;

    @TableField(exist = false)
    private String uavTypes;

    @TableField(exist = false)
    private List<String> uavTypeList;

}
