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 lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

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

    @TableField("enterpriseCode")
    @NotNull
    private String enterpriseCode;

    @TableField("dataCode")
    private String dataCode;

    @TableField("collectName")
    private String collectName;

    @TableField("editReason")
    private String editReason;

    @TableField("remark")
    private String remark;

    @TableField("applyTime")
    private String applyTime;

    @TableField("dataValue")
    @NotNull(message = "原数据不能为空！")
    private String dataValue;

    @TableField("applyType")
    private String applyType;

    @TableField("auditType")
    private String auditType;

    @TableField("auditText")
    private String auditText;

    @TableField("auditTime")
    private String auditTime;

    @TableField("dataId")
    private String dataId;

    @TableField("statDate")
    @NotNull(message = "数据统计时间不能为空！")
    private String statDate;

    @TableField("statType")
    private String statType;

    @TableField("convertRation")
    @NotNull(message = "原始折标系数不能为空！")
    private String convertRation;

    @TableField("editDataValue")
    @NotNull(message = "修改数据不能为空！")
    private String editDataValue;

    @TableField("operaType")
    private String operaType;

    @TableField("editConvertRation")
    @NotNull(message = "修改折标系数不能为空！")
    private String editConvertRation;

    @TableField(exist = false)
    private  String cmpName; //企业名称

    @TableField(exist = false)
    private String startDate;

    @TableField(exist = false)
    private String endDate;
}
