package com.hotent.baseInfo.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;

@ApiModel("监审文号新增请求参数")
@Getter
@Setter
public class CostDocumentWhSave {


    @ApiModelProperty(value = "文号名称")
    @TableField("wh_name")
    @JsonProperty("whName")
    private String whName;

    @ApiModelProperty(value = "文号别名")
    @TableField("alias")
    @JsonProperty("alias")
    private String alias;

    @ApiModelProperty(value = "生成类型: incremental-递增, daily-每天生成, monthly-每月生成, yearly-每年生成")
    @TableField("generate_type")
    @JsonProperty("generateType")
    private String generateType;

    @ApiModelProperty(value = "流水号规则")
    @TableField("rule_pattern")
    @JsonProperty("rulePattern")
    private String rulePattern;

    @ApiModelProperty(value = "流水号长度")
    @TableField("serial_length")
    @JsonProperty("serialLength")
    private Integer serialLength;

    @ApiModelProperty(value = "初始值")
    @TableField("initial_value")
    @JsonProperty("initialValue")
    private Integer initialValue;

    @ApiModelProperty(value = "当前流水号值")
    @TableField("current_value")
    @JsonProperty("currentValue")
    private Integer currentValue;


    @ApiModelProperty(value = "逻辑删除：0正常 1已删除")
    @TableField("is_deleted")
    @JsonProperty("isDeleted")
    private String isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonProperty("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    @JsonProperty("createBy")
    private String createBy;



    @ApiModelProperty(value = "文号分类")
    @TableField("wh_type")
    @JsonProperty("whType")
    private String whType;

    @ApiModelProperty(value = "单位级别：0:省/自治区/直辖市 1:市级 2:县级")
    @TableField("area_level")
    @JsonProperty("areaLevel")
    private String areaLevel;

    @ApiModelProperty(value = "所属区域代码")
    @TableField("area_code")
    @JsonProperty("areaCode")
    private String areaCode;

    @ApiModelProperty(value = "年号")
    @TableField("year")
    @JsonProperty("year")
    private String year;

    @ApiModelProperty(value = "文号前缀")
    @TableField("prefix_text")
    @JsonProperty("prefixText")
    private String prefixText;
}
