package com.nantian.cloud.dbcapp.entity;

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.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("configure_data_collect_enable_apply")
public class ConfigureDataCollectEnableApply {
    @TableId(value = "id", type = IdType.AUTO)
    private  Integer id;

    @TableField("enterpriseCode")
    @ApiModelProperty(value = "企业编码")
    private String enterpriseCode;

    @TableField("dataCode")
    @ApiModelProperty(value = "采集点编码")
    private String dataCode;

    @TableField("startTime")
    @ApiModelProperty(value = "停用开始时间")
    private String startTime;

    @TableField("endTime")
    @ApiModelProperty(value = "停用结束时间")
    private String endTime;

    @TableField("creatTime")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatTime;

    @TableField("updateTime")
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField("remark")
    @ApiModelProperty("说明")
    private String remark;

    @TableField("delFlag")
    @ApiModelProperty("删除状态（1：未删除，4：已删除）")
    private String delFlag;

    @TableField("creatUserId")
    @ApiModelProperty(value = "创建用户id")
    private Integer creatUserId;

    @TableField("updateUserId")
    @ApiModelProperty(value = "创建用户id")
    private Integer updateUserId;

    @TableField("auditUser")
    @ApiModelProperty(value = "审核员")
    private String auditUser;

    @TableField("auditType")
    @ApiModelProperty(value = "审核状态（0：通过，1：退回，2：未审核）")
    private String auditType;

    @TableField("auditText")
    @ApiModelProperty(value = "审核结论")
    private String auditText;

    @TableField("auditTime")
    @ApiModelProperty(value = "审核时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "企业名称")
    private  String cmpName;

    @TableField(exist = false)
    @ApiModelProperty(value = "采集点名称")
    private String collectItemName;
}
