|
|
@@ -0,0 +1,62 @@
|
|
|
+
|
|
|
+package org.sky.scientific.pojo.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.Max;
|
|
|
+import jakarta.validation.constraints.Min;
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import org.sky.core.tenant.mp.TenantEntity;
|
|
|
+
|
|
|
+import java.io.Serial;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 研发人员考勤表 实体类
|
|
|
+ *
|
|
|
+ * @author Kd
|
|
|
+ * @since 2025-06-29
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@TableName("kd_attendance")
|
|
|
+@Schema(description = "研发人员考勤表")
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+public class AttendanceEntity extends TenantEntity {
|
|
|
+
|
|
|
+ @Serial
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Schema(description = "研发人员id")
|
|
|
+ @NotBlank(message = "请选择研发人员")
|
|
|
+ private String technicianId;
|
|
|
+
|
|
|
+ @Schema(description = "姓名")
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @Schema(description = "工号")
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String number;
|
|
|
+
|
|
|
+ @Schema(description = "身份证号码")
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String identityCard;
|
|
|
+
|
|
|
+ @Schema(description = "人员类型")
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String personnelType;
|
|
|
+
|
|
|
+ @Schema(description="考勤时间,yyyyMMdd")
|
|
|
+ @NotNull(message = "请选择考勤时间")
|
|
|
+ private String workDate;
|
|
|
+
|
|
|
+ @Schema(description="出勤时长(小时)")
|
|
|
+ @NotNull(message = "请填写出勤时长(小时)")
|
|
|
+ @Min(value = 0, message = "请填写正确的出勤时长(小时)")
|
|
|
+ @Max(value = 24, message = "请填写正确的出勤时长(小时)")
|
|
|
+ private float workDuration;
|
|
|
+
|
|
|
+}
|