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;

/**
 * 成本审核意见表（合并初步意见和结论意见）
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-01-27
 */
@ApiModel(value="CostProjectTaskPreliminaryOpinion对象", description="成本审核意见表")
@Data
public class CostProjectTaskPreliminaryOpinion extends BaseModel<CostProjectTaskPreliminaryOpinion> {

    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("basic_situation")
    @JsonProperty("basicSituation")
    private String basicSituation;

    @ApiModelProperty(value = "监审项目现行执行的价格标准")
    @TableField("current_price_standard")
    @JsonProperty("currentPriceStandard")
    private String currentPriceStandard;

    @ApiModelProperty(value = "监审项目的成本构成、数据核增核减情况、依据及理由")
    @TableField("cost_composition")
    @JsonProperty("costComposition")
    private String costComposition;

    @ApiModelProperty(value = "成本审核初步意见")
    @TableField("preliminary_opinion")
    @JsonProperty("preliminaryOpinion")
    private String preliminaryOpinion;

    // 反馈意见字段
    @ApiModelProperty(value = "被监审单位反馈的意见")
    @TableField("feedback_opinion")
    @JsonProperty("feedbackOpinion")
    private String feedbackOpinion;

    @ApiModelProperty(value = "被监审单位反馈资料")
    @TableField("feedback_materials")
    @JsonProperty("feedbackMaterials")
    private String feedbackMaterials;

    // 结论意见字段
    @ApiModelProperty(value = "反馈状态：no_objection-无异议，objection-有异议")
    @TableField("feedback_status")
    @JsonProperty("feedbackStatus")
    private String feedbackStatus;

    @ApiModelProperty(value = "成本审核结论意见")
    @TableField("conclusion_opinion")
    @JsonProperty("conclusionOpinion")
    private String conclusionOpinion;

    @ApiModelProperty(value = "其他需要说明的事项")
    @TableField("other_explanations")
    @JsonProperty("otherExplanations")
    private String otherExplanations;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    @JsonProperty("remark")
    private String remark;

    @ApiModelProperty(value = "状态：draft-草稿，submitted-已提交")
    @TableField("status")
    @JsonProperty("status")
    private String status;

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

    private String unitId;

}

