package com.ruoyi.staff.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; import lombok.Setter; import org.springframework.format.annotation.DateTimeFormat; /** *
* *
* * @author 芯导软件(江苏)有限公司 * @since 2026-02-09 01:20:07 */ @Getter @Setter @TableName("personal_attendance_records") @Schema(name = "PersonalAttendanceRecords对象", description = "") public class PersonalAttendanceRecords implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @Schema(description = "员工在职id") private Long staffOnJobId; @Schema(description = "日期") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") @Excel(name = "日期", sort = 1, dateFormat = "yyyy-MM-dd") private LocalDate date; @Schema(description = "工作开始时间") @JsonFormat(pattern = "HH:mm") @DateTimeFormat(pattern = "HH:mm") @Excel(name = "上班时间", sort = 5, dateFormat = "HH:mm") private LocalDateTime workStartAt; @Schema(description = "工作结束时间") @JsonFormat(pattern = "HH:mm") @DateTimeFormat(pattern = "HH:mm") @Excel(name = "下班时间", sort = 6, dateFormat = "HH:mm") private LocalDateTime workEndAt; @Schema(description = "工作时长") @Excel(name = "工时(小时)", sort = 7) private BigDecimal workHours; @Schema(description = "状态 0正常 1迟到 2早退 3迟到早退 4缺勤") @Excel(name = "状态", sort = 8,readConverterExp = "0=正常,1=迟到,2=早退,3=迟到、早退,4=缺勤") private Integer status; @Schema(description = "备注") @Excel(name = "备注", sort = 9) private String remark; @Schema(description = "租户id") @TableField(fill = FieldFill.INSERT) private Long tenantId; @Schema(description = "录入时间") @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @Schema(description = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @TableField(fill = FieldFill.INSERT) private Long deptId; }