package com.zksy.drainage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
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 = "psgw_waterlogging_point", schema = "app_user")
public class WaterloggingPoint {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("主键ID")
    private String id;

    @ApiModelProperty("监测点名称")
    private String name;

    @ApiModelProperty("行政区域")
    private String area;

    @ApiModelProperty("数据时间")
    private String time;

    @ApiModelProperty("易积水点数量（自动计算）")
    private Integer waterloggingCount;

    @ApiModelProperty("易积水点标记坐标JSON")
    private String waterloggingPoints;

    @ApiModelProperty("积水量")
    @TableField("water_volume")
    private BigDecimal waterVolume;

    @ApiModelProperty("积水程度(0未积水,1轻度积水,2中度积水,3严重积水)")
    @TableField("waterlogging_level")
    private Integer waterloggingLevel;

    @ApiModelProperty("关联设备ID（多个用逗号分隔）")
    private String equipmentId;

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

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