150 lines
2.9 KiB
Java
150 lines
2.9 KiB
Java
package cn.palmte.work.model;
|
|
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
import javax.persistence.*;
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* @author Yuanping Zhang
|
|
* @date 2021/11/1
|
|
*/
|
|
@Entity
|
|
@Table(name = "project_user_time")
|
|
public class ProjectUserTime {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@GenericGenerator(name = "persistenceGenerator", strategy = "increment")
|
|
private int id;
|
|
|
|
@Column(name = "project_id")
|
|
private int projectId;
|
|
|
|
@Column(name = "project_name")
|
|
private String projectName;
|
|
|
|
@Column(name = "user_id")
|
|
private int userId;
|
|
|
|
@Column(name = "user_salary")
|
|
private BigDecimal userSalary;
|
|
|
|
@Column(name = "user_cost")
|
|
private BigDecimal userCost;
|
|
|
|
@Column(name = "user_name")
|
|
private String userName;
|
|
|
|
@Column(name = "time")
|
|
private String time;
|
|
|
|
@Column(name = "created_by")
|
|
private int createdBy;
|
|
|
|
@Column(name = "created_time")
|
|
private Date createdTime;
|
|
|
|
@Transient
|
|
private BigDecimal costSum;
|
|
|
|
@Transient
|
|
private BigDecimal salarySum;
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public int getProjectId() {
|
|
return projectId;
|
|
}
|
|
|
|
public void setProjectId(int projectId) {
|
|
this.projectId = projectId;
|
|
}
|
|
|
|
public String getProjectName() {
|
|
return projectName;
|
|
}
|
|
|
|
public void setProjectName(String projectName) {
|
|
this.projectName = projectName;
|
|
}
|
|
|
|
public int getUserId() {
|
|
return userId;
|
|
}
|
|
|
|
public void setUserId(int userId) {
|
|
this.userId = userId;
|
|
}
|
|
|
|
public BigDecimal getUserSalary() {
|
|
return userSalary;
|
|
}
|
|
|
|
public void setUserSalary(BigDecimal userSalary) {
|
|
this.userSalary = userSalary;
|
|
}
|
|
|
|
public BigDecimal getUserCost() {
|
|
return userCost;
|
|
}
|
|
|
|
public void setUserCost(BigDecimal userCost) {
|
|
this.userCost = userCost;
|
|
}
|
|
|
|
public String getUserName() {
|
|
return userName;
|
|
}
|
|
|
|
public void setUserName(String userName) {
|
|
this.userName = userName;
|
|
}
|
|
|
|
public String getTime() {
|
|
return time;
|
|
}
|
|
|
|
public void setTime(String time) {
|
|
this.time = time;
|
|
}
|
|
|
|
public int getCreatedBy() {
|
|
return createdBy;
|
|
}
|
|
|
|
public void setCreatedBy(int createdBy) {
|
|
this.createdBy = createdBy;
|
|
}
|
|
|
|
public Date getCreatedTime() {
|
|
return createdTime;
|
|
}
|
|
|
|
public void setCreatedTime(Date createdTime) {
|
|
this.createdTime = createdTime;
|
|
}
|
|
|
|
public BigDecimal getCostSum() {
|
|
return costSum;
|
|
}
|
|
|
|
public void setCostSum(BigDecimal costSum) {
|
|
this.costSum = costSum;
|
|
}
|
|
|
|
public BigDecimal getSalarySum() {
|
|
return salarySum;
|
|
}
|
|
|
|
public void setSalarySum(BigDecimal salarySum) {
|
|
this.salarySum = salarySum;
|
|
}
|
|
}
|