package cn.iocoder.yudao.module.knowledge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 招标采购方式表(TProcurementBid)表实体类
 *
 * @author makejava
 * @since 2024-04-12 10:31:34
 */
@Data
@TableName("t_procurement_bid")
public class TProcurementBid extends BaseDO {

    @Schema(description = "主键", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "招标计划id", example = "2")
    private Long bidPlanId;

    @Schema(description = "类型 0:代表公开招标 1:代表邀请招标", example = "0")
    private Integer type;

    @Schema(description = "序号", example = "1")
    private String orders;

    @Schema(description = "标段名称", example = "标段名称示例")
    private String sectionName;

    @Schema(description = "招标内容", example = "招标内容示例")
    private String bidContent;

    @Schema(description = "预估价格（万元）", example = "100.0")
    private Double estimatedPrice;

    @Schema(description = "计划时间", example = "2024-04-23T12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date planTime;

    @TableField(exist = false)
    private String planTimes;

    @Schema(description = "评标办法", example = "评标办法示例")
    private String bidEvaluationMethod;

    @Schema(description = "定标方式", example = "定标方式示例")
    private String scalingMode;

    @Schema(description = "创建者", example = "John Doe")
    private String creator;
    @Schema(
            description = "创建者id",
            example = "1"
    )
    private String creatorId;

}
