package com.ruoyi.ibs.grid.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/9/18
 **/
@Data
@TableName("grid_virtual_grid")
public class VirtualGrid implements Serializable {

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

    /**
     * 网格名
     */
    @ApiModelProperty(value = "网格名", notes = "")
    private String gridName;
    /**
     * 网格类型
     */
    @ApiModelProperty(value = "网格类型", notes = "")
    private String gridType;
    /**
     * 是否个人
     */
    @ApiModelProperty(value = "是否个人", notes = "")
    private Boolean hasRetail;
    /**
     * 是否企业
     */
    @ApiModelProperty(value = "是否企业", notes = "")
    private Boolean hasBusiness;
    /**
     * 是否商户
     */
    @ApiModelProperty(value = "是否商户", notes = "")
    private Boolean hasRetailBusiness;
    /**
     * 分配方式;1指定 2分配引擎
     */
    @ApiModelProperty(value = "分配方式", notes = "1指定 2分配引擎")
    private String gridAssignType;
    /**
     * 网格责任类型;1责任 2竞争
     */
    @ApiModelProperty(value = "网格责任类型", notes = "1责任 2竞争")
    private String gridDutyType;

    @ApiModelProperty(value = "网格创建类型", notes = "1导入客户 2导入管护")
    private String createMode;

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

    @ApiModelProperty(value = "创建网格类型")
    private String deptType;

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

    /**
     * 创建者
     */
    @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;

    private Boolean batchFlag;

}
