package org.jeecg.modules.projectManagement.entity;

import java.io.Serializable;
import java.util.List;

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 lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 项目报价选择的模板对照表
 * @author： jeecg-boot
 * @date：   2019-05-20
 * @version： V1.0
 */
@Data
@TableName("fd_project_quotation_template")
public class FdProjectQuotationTemplate implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
	private java.lang.String id;
	/**项目报价单id*/
	@Excel(name = "项目报价单id", width = 15)
	private java.lang.String quotationId;
	/**项目报价单模板id*/
	@Excel(name = "项目报价单模板id", width = 15)
	private java.lang.String quotationTemplateId;
	/**折扣比例*/
	@Excel(name = "折扣比例", width = 15)
	private java.lang.String discountRate;
	/**折扣金额，按原金额减去折扣金额之差按比例调整每一小项金额*/
	@Excel(name = "折扣金额，按原金额减去折扣金额之差按比例调整每一小项金额", width = 15)
	private java.lang.String discountPrice;
	/**删除标记0正常1删除*/
	@Excel(name = "删除标记0正常1删除", width = 15)
	private java.lang.String delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;

	//排序
	private String sort;

	//费用1的标题名称
	private String feeCategory1Title;

	//费用2的标题名称
	private String feeCategory2Title;

	//费用1的折扣总价率
	private String totslDiscountRate1;

	//费用2的折扣总价率
	private String totslDiscountRate2;

	//原始价格小计1
	private String originalsubtotal1;

	//原始价格小计2
	private String originalsubtotal2;

	//含税折扣率小计1
	private String subtotalFeeCategory1;

	//含税折扣率小计2
	private String subtotalFeeCategory2;

	//税费1
	private String taxationFeeCategory1;

	//税费2
	private String taxationFeeCategory2;

	//总价1
	private String totleFeeCategory1;

	//总价2
	private String totleFeeCategory2;

	//最终价格1
	private String finalPrice1;

	//最终价格2
	private String finalPrice2;

	//原始价格小计1
	private String originalsubtotal1C;

	//原始价格小计2
	private String originalsubtotal2C;

	//含税折扣率小计1
	private String subtotalFeeCategory1C;

	//含税折扣率小计2
	private String subtotalFeeCategory2C;

	//税费1
	private String taxationFeeCategory1C;

	//税费2
	private String taxationFeeCategory2C;

	//总价1
	private String totleFeeCategory1C;

	//总价2
	private String totleFeeCategory2C;

	//最终价格1
	private String finalPrice1C;

	//最终价格2
	private String finalPrice2C;

	//模板名称
	private String name;

	//是否有项目详情
	private String isProjectDetails;

	//显示的费用列
	private Integer costColumnNumber;

	//小计合计合并列
	private Integer colspan;

	@Excel(name = "项目报价模板对照明细")
	@TableField(exist = false)
	private List<FdProjectQuotationTemplateItem> templateItemList;

	//树形明细json集合
	@TableField(exist = false)
	private List<FdProjectQuotationTemplateItemTree> fdProjectQuotationTemplateItemTreeList;
	//模板类型
	@TableField(exist = false)
	private String type;
	//模板名称
	// @TableField(exist = false)
	// private String name;
	//用于复制获取模板项id
	@TableField(exist = false)
	private String pid;

	//模板费用小计
	@TableField(exist = false)
	private String subtotal;

	//模板费用税费
	@TableField(exist = false)
	private String taxation;

	//模板费用总计
	@TableField(exist = false)
	private String total;
}
