package com.ltgk.video.domain.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.annotation.Excel;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 雷达管理表 (DsRadar)实体类
 *
 * @author Qi ChengBin
 * @date 2025-04-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "ds_radar")
@ApiModel(value = "雷达管理表对象", description = "DsRadar表")
public class DsRadar extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "序列号")
    @TableField(value = "serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "监管所属单位")
    @TableField(value = "belong_unit")
    private String belongUnit;

    @ApiModelProperty(value = "所属渔港ID")
    @TableField(value = "port_id")
    private String portId;

    @ApiModelProperty(value = "所属渔港名称")
    @TableField(value = "port_name")
    @Excel(name = "所属渔港", sort = 3)
    private String portName;

    @ApiModelProperty(value = "雷达编号")
    @TableField(value = "radar_code", condition = SqlCondition.LIKE)
    @Excel(name = "雷达编号", sort = 2)
    private String radarCode;

    @ApiModelProperty(value = "雷达名称")
    @TableField(value = "radar_name", condition = SqlCondition.LIKE)
    @Excel(name = "雷达名称", sort = 1)
    private String radarName;

    @ApiModelProperty(value = "雷达类型")
    @TableField(value = "radar_type")
    private String radarType;

    @ApiModelProperty(value = "设备型号")
    @TableField(value = "model")
    private String model;

    @ApiModelProperty(value = "生产厂家")
    @TableField(value = "manufacturer")
    @Excel(name = "生产厂家", sort = 4)
    private String manufacturer;

    @ApiModelProperty(value = "安装位置")
    @TableField(value = "addr")
    private String addr;

    @ApiModelProperty(value = "经度")
    @TableField(value = "longitude")
    @Excel(name = "经度", sort = 5)
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    @TableField(value = "latitude")
    @Excel(name = "纬度", sort = 6)
    private Double latitude;

    @ApiModelProperty(value = "探测范围")
    @TableField(value = "detection_range")
    private String detectionRange;

    @ApiModelProperty(value = "设备ip")
    @TableField(value = "radar_ip")
    private String radarIp;

    @ApiModelProperty(value = "设备端口号")
    @TableField(value = "radar_port")
    private String radarPort;

    @ApiModelProperty(value = "设备账号")
    @TableField(value = "radar_account")
    private String radarAccount;

    @ApiModelProperty(value = "设备密码")
    @TableField(value = "radar_password")
    private String radarPassword;

    @ApiModelProperty(value = "通道号")
    @TableField(value = "channel_no")
    private String channelNo;

    @ApiModelProperty(value = "安装时间")
    @TableField(value = "deploy_date")
    private LocalDate deployDate;

    @ApiModelProperty(value = "最近维护时间")
    @TableField(value = "last_maintenance_date")
    private LocalDate lastMaintenanceDate;

    @ApiModelProperty(value = "运行状态")
    @TableField(value = "run_status")
    @Excel(name = "运行状态", sort = 7)
    private String runStatus;

    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    @TableField(value = "del_flag")
    @TableLogic(delval = "1", value = "0")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    @TableField(value = "area_code")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @TableField(value = "area_name")
    private String areaName;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private String endTime;
}

