package com.ruoyi.ibs.draw.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 吴凯程
 * @Date 2024/12/19
 **/
@Data
@TableName("draw_shape")
public class DrawShape implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty(value = "图形主键", name = "id")
    @TableId(type = IdType.AUTO)
    private Long shapeId;
    /**
     * 图形名称
     */
    @ApiModelProperty(value = "图形名称", notes = "")
    private String shapeName;
    /**
     * 图形wkt
     */
    @ApiModelProperty(value = "图形wkt", notes = "")
    private String shapeWkt;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", notes = "")
    private String remark;

    @ApiModelProperty(value = "跑批标识", notes = "")
    private Boolean batchFlag;

    @ApiModelProperty(value = "关联标识", notes = "")
    private Boolean relateFlag;
    /**
     * 图层
     */
    @ApiModelProperty(value = "图层", name = "id")
    private Long layerId;
    /**
     * 归属机构号
     */
    @ApiModelProperty(value = "归属机构号", notes = "")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 删除标识
     */
    @TableLogic
    private Boolean deleteFlag;

    @ApiModelProperty(name = "部室归属 0零售 1公司 2运管", notes = "")
    private String opsDept;

    @ApiModelProperty(name = "审核状态 0待审核 1审核通过 2拒绝", notes = "")
    private String auditStatus;

    @ApiModelProperty(name = "审批意见", notes = "")
    private String auditRemark;
}
