package com.hotent.project.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hotent.base.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 资料归纳明细表
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-01-27
 */
@ApiModel(value="CostProjectTaskMaterialDetail对象", description="资料归纳明细表")
@Data
public class CostProjectTaskMaterialSummaryDetail extends BaseModel<CostProjectTaskMaterialSummaryDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonProperty("id")
    private String id;

    @ApiModelProperty(value = "主表ID")
    @TableField("master_id")
    @JsonProperty("masterId")
    private String masterId;

    @ApiModelProperty(value = "任务ID")
    @TableField("task_id")
    @JsonProperty("taskId")
    private String taskId;

    @ApiModelProperty(value = "文书名称")
    @TableField("document_name")
    @JsonProperty("documentName")
    private String documentName;

    @ApiModelProperty(value = "文号")
    @TableField("document_number")
    @JsonProperty("documentNumber")
    private String documentNumber;

    @ApiModelProperty(value = "被监审单位")
    @TableField("audited_unit_id")
    @JsonProperty("auditedUnitId")
    private String auditedUnitId;

    @ApiModelProperty(value = "被监审单位")
    @TableField("audited_unit_name")
    @JsonProperty("auditedUnitName")
    private String auditedUnitName;

    @ApiModelProperty(value = "生成(上传)时间")
    @TableField("generate_time")
    @JsonProperty("generateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone="GMT+8")
    private LocalDateTime generateTime;

    @ApiModelProperty(value = "文件来源")
    @TableField("file_source")
    @JsonProperty("fileSource")
    private String fileSource;

    @ApiModelProperty(value = "资料页数")
    @TableField("page_count")
    @JsonProperty("pageCount")
    private Integer pageCount;

    @ApiModelProperty(value = "附件地址")
    @TableField("attachment_url")
    @JsonProperty("attachmentUrl")
    private String attachmentUrl;

    @ApiModelProperty(value = "序号")
    @TableField("order_num")
    @JsonProperty("orderNum")
    private Integer orderNum;

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

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonProperty("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @JsonProperty("createBy")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateBy")
    private String updateBy;

}

