Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a74da9805e
36
src/main/java/com/codesdream/ase/model/leaves/Leave.java
Normal file
36
src/main/java/com/codesdream/ase/model/leaves/Leave.java
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
package com.codesdream.ase.model.leaves;
|
||||||
|
|
||||||
|
import com.codesdream.ase.model.permission.User;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.*;
|
||||||
|
import javax.persistence.*;
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name = "leaves_archive")
|
||||||
|
public class Leave {
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
|
private int id;
|
||||||
|
//发出人
|
||||||
|
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
|
private User userFrom;
|
||||||
|
//审批人容器
|
||||||
|
@ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
||||||
|
private Set <User> userTo;
|
||||||
|
//请假类型 病假,事假等
|
||||||
|
@Column(name = "type", nullable = false)
|
||||||
|
private String type;
|
||||||
|
//批准状态
|
||||||
|
@Column(name = "Authentication", nullable = false)
|
||||||
|
private Boolean Authentication;
|
||||||
|
//开始时间
|
||||||
|
@Column(nullable = false)
|
||||||
|
private Date startTime;
|
||||||
|
@Column(nullable = false)
|
||||||
|
private Date endTime;
|
||||||
|
//申请时间
|
||||||
|
private Date applyTime;
|
||||||
|
//认证时间
|
||||||
|
private Date authTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.codesdream.ase.model.leaves;
|
||||||
|
/**
|
||||||
|
请假信息的管理系统
|
||||||
|
*/
|
||||||
|
public class LeavesSystem {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user