package com.hotent.enterpriseDeclare.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hotent.base.entity.BaseModel;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 成本监审期间记录表
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-01-XX
 */
@ApiModel(value="CostAuditPeriodRecord对象", description="成本监审期间记录表")
public class CostAuditPeriodRecord extends BaseModel<CostAuditPeriodRecord> {

    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonProperty("id")
    private String id;
    
    @ApiModelProperty(value = "关联上传记录ID")
    @TableField("upload_id")
    @JsonProperty("uploadId")
    private String uploadId;
    
    @ApiModelProperty(value = "企业ID")
    @TableField("audited_unit_id")
    @JsonProperty("auditedUnitId")
    private String auditedUnitId;
    
    @ApiModelProperty(value = "监审期间（年份，如：2024）")
    @TableField("audit_period")
    @JsonProperty("auditPeriod")
    private String auditPeriod;
    
    @ApiModelProperty(value = "填报时间")
    @TableField("reporting_time")
    @JsonProperty("reportingTime")
    private LocalDateTime reportingTime;
    
    @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 = "监管目录ID（创建主表时使用）")
    @TableField(exist = false)
    @JsonProperty("catalogId")
    private String catalogId;

    @ApiModelProperty(value = "成本调查表模板ID（创建主表时使用）")
    @TableField(exist = false)
    @JsonProperty("surveyTemplateId")
    private String surveyTemplateId;

    private String taskId;

    @TableField(exist = false)
    private String projectId;

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getId() {
        return id;
    }

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

    public String getUploadId() {
        return uploadId;
    }

    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }

    public String getAuditedUnitId() {
        return auditedUnitId;
    }

    public void setAuditedUnitId(String auditedUnitId) {
        this.auditedUnitId = auditedUnitId;
    }

    public String getAuditPeriod() {
        return auditPeriod;
    }

    public void setAuditPeriod(String auditPeriod) {
        this.auditPeriod = auditPeriod;
    }

    public LocalDateTime getReportingTime() {
        return reportingTime;
    }

    public void setReportingTime(LocalDateTime reportingTime) {
        this.reportingTime = reportingTime;
    }

    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 getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(String catalogId) {
        this.catalogId = catalogId;
    }

    public String getSurveyTemplateId() {
        return surveyTemplateId;
    }

    public void setSurveyTemplateId(String surveyTemplateId) {
        this.surveyTemplateId = surveyTemplateId;
    }

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

    @Override
    public String toString() {
        return "CostAuditPeriodRecord{" +
            "id='" + id + '\'' +
            ", uploadId='" + uploadId + '\'' +
            ", auditedUnitId='" + auditedUnitId + '\'' +
            ", auditPeriod='" + auditPeriod + '\'' +
            ", reportingTime=" + reportingTime +
            ", isDeleted='" + isDeleted + '\'' +
            ", createTime=" + createTime +
            ", createBy='" + createBy + '\'' +
            ", updateTime=" + updateTime +
            ", updateBy='" + updateBy + '\'' +
            '}';
    }
}

