From 2b14c8aa092cdb90e1698a7efc120bd28d9f63af Mon Sep 17 00:00:00 2001 From: Vindicator645 <45960487+Vindicator645@users.noreply.github.com> Date: Mon, 17 Feb 2020 17:31:10 +0800 Subject: [PATCH] Added Leaves system model --- .../codesdream/ase/model/leaves/Leave.java | 36 +++++++++++++++++++ .../ase/model/leaves/LeavesSystem.java | 7 ++++ 2 files changed, 43 insertions(+) create mode 100644 src/main/java/com/codesdream/ase/model/leaves/Leave.java create mode 100644 src/main/java/com/codesdream/ase/model/leaves/LeavesSystem.java diff --git a/src/main/java/com/codesdream/ase/model/leaves/Leave.java b/src/main/java/com/codesdream/ase/model/leaves/Leave.java new file mode 100644 index 0000000..bc4f361 --- /dev/null +++ b/src/main/java/com/codesdream/ase/model/leaves/Leave.java @@ -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 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; + +} diff --git a/src/main/java/com/codesdream/ase/model/leaves/LeavesSystem.java b/src/main/java/com/codesdream/ase/model/leaves/LeavesSystem.java new file mode 100644 index 0000000..d21d7ad --- /dev/null +++ b/src/main/java/com/codesdream/ase/model/leaves/LeavesSystem.java @@ -0,0 +1,7 @@ +package com.codesdream.ase.model.leaves; +/** + 请假信息的管理系统 + */ +public class LeavesSystem { + +}