package com.hotent.baseInfo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hotent.base.entity.BaseModel;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
 * 文书文号管理表
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-10-02
 */
@ApiModel(value="CostDocumentWh1对象", description="文书文号管理表")
public class CostDocumentWh extends BaseModel<CostDocumentWh> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonProperty("id")
    private String id;
    
    @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 = "最后生成日期（用于按日/月/年重置）")
    @TableField("last_generate_date")
    @JsonProperty("lastGenerateDate")
    private LocalDate lastGenerateDate;
    
    @ApiModelProperty(value = "启用状态：1启用 0停用")
    @TableField("status")
    @JsonProperty("status")
    private String status;
    
    @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("update_time")
    @JsonProperty("updateTime")
    private LocalDateTime updateTime;
    
    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    @JsonProperty("updateBy")
    private String updateBy;
    
    @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;

    @ApiModelProperty(value = "文号")
    @TableField(exist = false)
    private String whNo;

    public String getWhNo() {
        return whNo;
    }

    public void setWhNo(String whNo) {
        this.whNo = whNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getWhName() {
        return whName;
    }

    public void setWhName(String whName) {
        this.whName = whName;
    }
    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }
    public String getGenerateType() {
        return generateType;
    }

    public void setGenerateType(String generateType) {
        this.generateType = generateType;
    }
    public String getRulePattern() {
        return rulePattern;
    }

    public void setRulePattern(String rulePattern) {
        this.rulePattern = rulePattern;
    }
    public Integer getSerialLength() {
        return serialLength;
    }

    public void setSerialLength(Integer serialLength) {
        this.serialLength = serialLength;
    }
    public Integer getInitialValue() {
        return initialValue;
    }

    public void setInitialValue(Integer initialValue) {
        this.initialValue = initialValue;
    }
    public Integer getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(Integer currentValue) {
        this.currentValue = currentValue;
    }
    public LocalDate getLastGenerateDate() {
        return lastGenerateDate;
    }

    public void setLastGenerateDate(LocalDate lastGenerateDate) {
        this.lastGenerateDate = lastGenerateDate;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    public String getWhType() {
        return whType;
    }

    public void setWhType(String whType) {
        this.whType = whType;
    }
    public String getAreaLevel() {
        return areaLevel;
    }

    public void setAreaLevel(String areaLevel) {
        this.areaLevel = areaLevel;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }
    public String getPrefixText() {
        return prefixText;
    }

    public void setPrefixText(String prefixText) {
        this.prefixText = prefixText;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CostDocumentWh1{" +
            "id=" + id +
            ", whName=" + whName +
            ", alias=" + alias +
            ", generateType=" + generateType +
            ", rulePattern=" + rulePattern +
            ", serialLength=" + serialLength +
            ", initialValue=" + initialValue +
            ", currentValue=" + currentValue +
            ", lastGenerateDate=" + lastGenerateDate +
            ", status=" + status +
            ", isDeleted=" + isDeleted +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
            ", whType=" + whType +
            ", areaLevel=" + areaLevel +
            ", areaCode=" + areaCode +
            ", year=" + year +
            ", prefixText=" + prefixText +
        "}";
    }
}
