package com.ltgk.port.domain.dto;


import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
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.extern.slf4j.Slf4j;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 渔港数据传输对象
 *
 * @author Qi ChengBin
 * @date 2024/12/11 15:17:21
 */
@Slf4j
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "渔港数据传输对象")
public class DsPortDTO extends BasePage {

    @ApiModelProperty(value = "渔港主键")
    @NotNull(message = "渔港主键不能为空!", groups = {Update.class, Detail.class})
    private String id;

    @ApiModelProperty(value = "单位ID/部门ID")
    private String deptId;

    @ApiModelProperty(value = "单位名称/部门名称")
    private String deptName;

    @ApiModelProperty(value = "渔港名称")
    @NotNull(message = "渔港名称不能为空！", groups = {Update.class, Add.class})
    private String portName;

    @ApiModelProperty(value = "渔港等级")
    private String portLevel;

    @ApiModelProperty(value = "泊位数")
    private Integer berthNum;

    @ApiModelProperty(value = "经度")
    @NotNull(message = "经度不能为空", groups = {Update.class, Add.class})
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @NotNull(message = "纬度不能为空", groups = {Update.class, Add.class})
    private String latitude;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "建成时间")
    private Date finishTime;

    @ApiModelProperty(value = "渔港类型ID")
    private Integer typeId;

    @ApiModelProperty(value = "渔港类型")
    private String typeName;

    @ApiModelProperty(value = "年卸港量")
    private String landingsYear;

    @ApiModelProperty(value = "港区岸线总长")
    private String portShorelineLength;

    @ApiModelProperty(value = "防波堤总长")
    private String portBreakwaterLength;

    @ApiModelProperty(value = "码头泊位总长")
    private String portBerthLength;

    @ApiModelProperty(value = "码头作业面宽")
    private String portJobAreaWidth;

    @ApiModelProperty(value = "港区水深")
    private String portWaterDepth;

    @ApiModelProperty(value = "服务设施【水产品市场/水产品加工厂】")
    private String serviceFacility;

    @ApiModelProperty(value = "渔港经营主体-名称")
    private String portBusinessEntityName;

    @ApiModelProperty(value = "渔港经营主体-地址")
    private String portBusinessEntityAddr;

    @ApiModelProperty(value = "渔港经营主体-负责人")
    private String portBusinessEntityPeople;

    @ApiModelProperty(value = "渔港经营主体-联系电话")
    private String portBusinessEntityTel;

    @ApiModelProperty(value = "渔港监督管理机构-名称")
    private String portRegulatoryBodiesName;

    @ApiModelProperty(value = "渔港监督管理机构-地址")
    private String portRegulatoryBodiesAddr;

    @ApiModelProperty(value = "渔港监督管理机构-负责人")
    private String portRegulatoryBodiesPeople;

    @ApiModelProperty(value = "渔港监督管理机构-联系电话")
    private String portRegulatoryBodiesTel;

    @ApiModelProperty(value = "区域形状")
    private String areaType;

    @ApiModelProperty(value = "渔船码头长度")
    private String boatWharf;

    @ApiModelProperty(value = "休闲码头长度")
    private String leisureWharf;

    @ApiModelProperty(value = "水域面积")
    private String waterArea;

    @ApiModelProperty(value = "陆域面积")
    private String landArea;

    @ApiModelProperty(value = "总面积")
    private String totalArea;

    @ApiModelProperty(value = "渔港所在地/渔港地址")
    private String portAddrDetail;

    @ApiModelProperty(value = "位置信息【范围坐标 -> 港区范围】")
    private String positionInfo;

    @ApiModelProperty(value = "名称显示状态【true/false】")
    private String nameDisplayState;

    @ApiModelProperty(value = "填充色")
    private String fillColor;

    @ApiModelProperty(value = "透明度")
    private String diaphaneity;

    @ApiModelProperty(value = "线条颜色")
    private String lineColor;

    @ApiModelProperty(value = "线框线宽")
    private String lineWidth;

    @ApiModelProperty(value = "行政区域编码")
    @NotNull(message = "行政区域编码不能为空", groups = {Update.class, Add.class})
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @NotNull(message = "行政区域名称不能为空", groups = {Update.class, Add.class})
    private String areaName;

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

    @ApiModelProperty(value = "排序码")
    private Integer sort;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

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

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

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "渔港主键列表")
    private List<String> portIdList;
}
