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("grid_draw_grid")
public class DrawGrid implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty(value = "网格主键", name = "id")
    @TableId(type = IdType.AUTO)
    private Long gridId;

    /**
     * 网格名
     */
    @ApiModelProperty(value = "网格名", notes = "")
    private String gridName;

    /**
     * 图层id
     */
    @ApiModelProperty(name = "图层id", notes = "")
    private Long layerId;

    /**
     * 网格责任类型;1责任 2竞争
     */
    @ApiModelProperty(value = "网格责任类型", notes = "1责任 2竞争")
    private String gridDutyType;


    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    private String deptName;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @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;
}
