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.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.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

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

    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty(value = "资料名称")
    @TableField("material_name")
    @JsonProperty("materialName")
    private String materialName;

    @ApiModelProperty(value = "资料序号")
    @TableField("material_order_num")
    @JsonProperty("materialOrderNum")
    private Integer materialOrderNum;

    @ApiModelProperty(value = "总页数")
    @TableField("total_page_count")
    @JsonProperty("totalPageCount")
    private String totalPageCount;

    @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;

    @ApiModelProperty(value = "明细列表")
    @TableField(exist = false)
    @JsonProperty("detailList")
    private List<CostProjectTaskMaterialSummaryDetail> detailList;

}

