11.22
今天实现bean类
Attendance
package com.example.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @AllArgsConstructor @NoArgsConstructor @Data public class Attendance { private int id; private String attendanceTime; private String jobID; private String name; private String sex; private String department; private int attendanceType; private String notes; private String approvedType; }
Department
package com.example.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Department { private String departmentID; private String departmentName; }
Staff
package com.example.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalDate; @Data @AllArgsConstructor @NoArgsConstructor public class Staff { private String jobID; private String name; private String sex; private LocalDate birthday; private String department; private String role; private String password; }
UpdateSatff
package com.example.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalDate; @Data @AllArgsConstructor @NoArgsConstructor public class UpdateStaff { private String jobID; private String name; private String sex; private LocalDate birthday; }