81 lines
1.7 KiB
Java
81 lines
1.7 KiB
Java
|
|
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;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|