|
|
@@ -5,10 +5,6 @@ import jakarta.validation.constraints.NotNull |
|
|
|
import java.time.LocalDate |
|
|
|
|
|
|
|
data class NewStaffRequest( |
|
|
|
val id: Long?, |
|
|
|
|
|
|
|
// @field:NotNull(message = "Staff userId cannot be empty") |
|
|
|
// val userId: Long, |
|
|
|
@field:NotBlank(message = "Staff name cannot be empty") |
|
|
|
val name: String, |
|
|
|
@field:NotBlank(message = "Staff staffId cannot be empty") |
|
|
@@ -17,21 +13,30 @@ data class NewStaffRequest( |
|
|
|
val companyId: Long, |
|
|
|
@field:NotNull(message = "Staff salaryId cannot be empty") |
|
|
|
val salaryId: Long, |
|
|
|
// @field:NotNull(message = "Staff skillSetId cannot be empty") |
|
|
|
val skillSetId: List<Long>?, |
|
|
|
@field:NotNull(message = "joinDate cannot be empty") |
|
|
|
val joinDate: LocalDate, |
|
|
|
@field:NotNull(message = "Staff currentPositionId cannot be empty") |
|
|
|
val currentPositionId: Long, |
|
|
|
// val salaryEffId: Long, |
|
|
|
@field:NotNull(message = "Staff joinPositionId cannot be empty") |
|
|
|
val joinPositionId: Long, |
|
|
|
val gradeId: Long?, |
|
|
|
val teamId: Long?, |
|
|
|
@field:NotNull(message = "Staff departmentId cannot be empty") |
|
|
|
val departmentId: Long, |
|
|
|
@field:NotBlank(message = "Staff phone1 cannot be empty") |
|
|
|
val phone1: String, |
|
|
|
val phone2: String?, |
|
|
|
@field:NotBlank(message = "Staff email cannot be empty") |
|
|
|
val email: String, |
|
|
|
@field:NotBlank(message = "Staff emergContactName cannot be empty") |
|
|
|
val emergContactName: String, |
|
|
|
@field:NotBlank(message = "Staff emergContactPhone cannot be empty") |
|
|
|
val emergContactPhone: String, |
|
|
|
@field:NotBlank(message = "Staff employType cannot be empty") |
|
|
|
val employType: String, |
|
|
|
|
|
|
|
val id: Long?, |
|
|
|
val skillSetId: List<Long>?, |
|
|
|
val gradeId: Long?, |
|
|
|
val phone2: String?, |
|
|
|
val teamId: Long?, |
|
|
|
val departDate: LocalDate?, |
|
|
|
val departReason: String?, |
|
|
|
val remark: String?, |