/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Use of this software is governed by the Commercial License Agreement
 * obtained after purchasing a license from BladeX.
 * <p>
 * 1. This software is for development use only under a valid license
 * from BladeX.
 * <p>
 * 2. Redistribution of this software's source code to any third party
 * without a commercial license is strictly prohibited.
 * <p>
 * 3. Licensees may copyright their own code but cannot use segments
 * from this software for such purposes. Copyright of this software
 * remains with BladeX.
 * <p>
 * Using this software signifies agreement to this License, and the software
 * must not be used for illegal purposes.
 * <p>
 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
 * not liable for any claims arising from secondary or illegal development.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.zhaocai.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 年度招采计划项目明细实体类
 *
 * @author Chill
 */
@Data
@TableName("zc_procurement_plan_project")
@EqualsAndHashCode(callSuper = true)
public class ProcurementPlanDetail extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 主表ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@Schema(description = "主表ID")
	private Long planId;

	/**
	 * 年度
	 */
	@Schema(description = "年度")
	private String year;

	/**
	 * 计划号
	 */
	@Schema(description = "计划号")
	private String planNo;

	/**
	 * 序号
	 */
	@Schema(description = "序号")
	private Integer sortNo;

	/**
	 * 项目名称
	 */
	@Schema(description = "项目名称")
	private String projectName;

	/**
	 * 项目类型
	 */
	@Schema(description = "项目类型")
	private String projectType;

	/**
	 * 项目对接人
	 */
	@Schema(description = "项目对接人")
	private String contactPerson;

	/**
	 * 项目对接人ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@Schema(description = "项目对接人ID")
	private Long contactPersonId;

	/**
	 * 计划申请日期
	 */
	@Schema(description = "计划申请日期")
	private LocalDate applyDate;

	/**
	 * 期望使用/完成日期
	 */
	@Schema(description = "期望使用/完成日期")
	private LocalDate expectDate;

	/**
	 * 项目属性
	 */
	@Schema(description = "项目属性")
	private String projectAttr;

	/**
	 * 采购需求
	 */
	@Schema(description = "采购需求")
	private String purchaseRequirement;

	/**
	 * 预算金额（万元）
	 */
	@Schema(description = "预算金额（万元）")
	private BigDecimal budgetAmount;

	/**
	 * 招标方式
	 */
	@Schema(description = "招标方式")
	private String biddingMethod;

	/**
	 * 项目简介
	 */
	@Schema(description = "项目简介")
	private String projectIntro;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

	/**
	 * 物料明细冗余汇总
	 */
	@Schema(description = "物料明细冗余汇总")
	private String materialDetail;

}
