mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
commit 2023/05/06
This commit is contained in:
@@ -10,6 +10,9 @@ import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@@ -18,7 +21,7 @@ import lombok.experimental.Accessors;
|
||||
* 考勤
|
||||
* </p>
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @author gzw
|
||||
* @since 2023-04-30
|
||||
*/
|
||||
@Data
|
||||
@@ -30,18 +33,21 @@ public class Attendance implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId("id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户
|
||||
*/
|
||||
@TableField("user_id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 考勤时间
|
||||
*/
|
||||
@TableField("att_time")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",timezone = "UTC")
|
||||
private LocalDateTime attTime;
|
||||
|
||||
/**
|
||||
@@ -54,6 +60,7 @@ public class Attendance implements Serializable {
|
||||
* 修改人
|
||||
*/
|
||||
@TableField("modify_id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long modifyId;
|
||||
|
||||
/**
|
||||
@@ -63,10 +70,13 @@ public class Attendance implements Serializable {
|
||||
private LocalDateTime modifyTime;
|
||||
|
||||
@TableField("deleted")
|
||||
@TableLogic
|
||||
@TableLogic(value = "0",delval = "1")
|
||||
private Integer deleted;
|
||||
|
||||
@TableField("version")
|
||||
@Version
|
||||
private Integer version;
|
||||
|
||||
@TableField(exist = false)
|
||||
private User user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user