fourcal/src/main/java/cn/palmte/work/model/ProjectFinalProfitMargin.java

81 lines
1.7 KiB
Java
Raw Normal View History

2021-11-10 07:49:13 +00:00
package cn.palmte.work.model;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.math.BigDecimal;
/**
*
*/
@Entity
@Table(name = "project_final_profit_margin")
public class ProjectFinalProfitMargin {
public static final int TYPE_GROSS_PROFIT = 1;//项目毛利
public static final int TYPE_CONTRIBUTION_MARGIN = 2;//项目贡献利润
public static final int TYPE_NET_MARGIN = 3;//项目净利润
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GenericGenerator(name = "persistenceGenerator", strategy = "increment")
private Integer id;
@Column(name = "project_id")
private int projectId;
private int type;
/**
*
*/
@Column(name = "estimate_total_profit_margin")
private BigDecimal estimateTotalProfitMargin;
/**
*
*/
@Column(name = "budget_total_profit_margin")
private BigDecimal budgetTotalProfitMargin;
/**
*
*/
@Column(name = "settle_total_profit_margin")
private BigDecimal settleTotalProfitMargin;
/**
*
*/
@Column(name = "final_total_profit_margin")
private BigDecimal finalTotalProfitMargin;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public int getProjectId() {
return projectId;
}
public void setProjectId(int projectId) {
this.projectId = projectId;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}