package org.springblade.modules.attendance.entity; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; /** * 考勤打卡实体类 * * @author zhongrj * @since 2022-02-28 */ @Data @TableName("sys_attendance") public class Attendance implements Serializable { private static final long serialVersionUID = 1L; /** * 雪花算法,非自增 */ @TableId(value = "id", type = IdType.ASSIGN_ID) private Long id; /** * 用户id */ private Long userId; /** * 部门id */ private Long deptId; /** * 天气 */ private String weather; /** * 打卡时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date clockTime; /** * 经度 */ private String jd; /** * 纬度 */ private String wd; /** * 打卡类型 1:上班 2:下班 */ private Integer clockType; /** * 考勤类型 1:正常 2:迟到 3:早退 */ private Integer attendanceType; /** * 星期 */ private String week; /** * 地址 */ private String address; /** * 是否为外勤打卡 */ private Integer legwork; }