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.util.Date;
/**
 * AIS基站管理表 (DsAisStation)实体类
 *
 * @author Qi ChengBin
 * @date 2025-04-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "ds_ais_station")
@ApiModel(value = "AIS基站管理表对象", description = "DsAisStation表")
public class DsAisStation 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", condition = SqlCondition.LIKE)
    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 = "AIS基站编号")
    @TableField(value = "ais_station_code", condition = SqlCondition.LIKE)
    @Excel(name = "基站编号", sort = 2)
    private String aisStationCode;
    
    @ApiModelProperty(value = "AIS基站名称")
    @TableField(value = "ais_station_name", condition = SqlCondition.LIKE)
    @Excel(name = "基站名称", sort = 1)
    private String aisStationName;
    
    @ApiModelProperty(value = "AIS基站类型")
    @TableField(value = "ais_station_type")
    private String aisStationType;
    
    @ApiModelProperty(value = "设备型号")
    @TableField(value = "model")
    private String model;
    
    @ApiModelProperty(value = "生产厂家")
    @TableField(value = "manufacturer", condition = SqlCondition.LIKE)
    @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 = "coverage_radius")
    private Double coverageRadius;
    
    @ApiModelProperty(value = "设备ip")
    @TableField(value = "ais_station_ip")
    private String aisStationIp;
    
    @ApiModelProperty(value = "设备端口号")
    @TableField(value = "ais_station_port")
    private String aisStationPort;
    
    @ApiModelProperty(value = "设备账号")
    @TableField(value = "ais_station_account")
    private String aisStationAccount;
    
    @ApiModelProperty(value = "设备密码")
    @TableField(value = "ais_station_password")
    private String aisStationPassword;
    
    @ApiModelProperty(value = "AIS信道A频率（161.975 MHz）")
    @TableField(value = "channel_a_freq")
    private Double channelAFreq;
    
    @ApiModelProperty(value = "AIS信道B频率（162.025 MHz）")
    @TableField(value = "channel_b_freq")
    private Double channelBFreq;
    
    @ApiModelProperty(value = "发射功率（单位：瓦）")
    @TableField(value = "transmit_power")
    private Double transmitPower;
    
    @ApiModelProperty(value = "天线高度（单位：米）")
    @TableField(value = "antenna_height")
    private Double antennaHeight;
    
    @ApiModelProperty(value = "协议版本")
    @TableField(value = "protocol_version")
    private String protocolVersion;
    
    @ApiModelProperty(value = "安装时间")
    @TableField(value = "deploy_date")
    private Date deployDate;
    
    @ApiModelProperty(value = "最近维护时间")
    @TableField(value = "last_maintenance_date")
    private Date 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;
}

