package com.zksy.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 燃气管点信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "gas_pipe_point", schema = "app_user")
public class GasPipePoint {

    @TableId(value = "point_id", type = IdType.AUTO)
    @ApiModelProperty("管点ID")
    private Long pointId;

    @ApiModelProperty("管点编码")
    private String pointCode;

    @ApiModelProperty("管点名称")
    private String pointName;

    @ApiModelProperty("所属管线ID")
    private String networkId;

    @ApiModelProperty("所属管线名称")
    private String networkName;

    @ApiModelProperty("管点类型（阀门/调压/计量/阴极保护/弯头/三通/其它）")
    private String pointType;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("地址/位置描述")
    private String address;

    @ApiModelProperty("管径（毫米）")
    private BigDecimal diameter;

    @ApiModelProperty("材质")
    private String material;

    @ApiModelProperty("埋深（米）")
    private BigDecimal depth;

    @ApiModelProperty("建设日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String buildDate;

    @ApiModelProperty("状态（0-正常 1-异常 2-停用）")
    private String status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建人")
    private String createBy;

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

    @ApiModelProperty("更新人")
    private String updateBy;

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

    @TableLogic(value = "0", delval = "2")
    @ApiModelProperty("删除标志（0=正常 2=删除）")
    private String delFlag;
}
