You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
package com.ccic.safeliab.entity; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableLogic; |
|
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 org.springframework.format.annotation.DateTimeFormat; |
|
|
|
import java.util.Date; |
|
|
|
@Data |
|
public class BaseEntity { |
|
@JsonSerialize( |
|
using = ToStringSerializer.class |
|
) |
|
private Long createdBy; |
|
@DateTimeFormat( |
|
pattern = "yyyy-MM-dd HH:mm:ss" |
|
) |
|
@JsonFormat( |
|
pattern = "yyyy-MM-dd HH:mm:ss" |
|
) |
|
private Date createAt; |
|
@JsonSerialize( |
|
using = ToStringSerializer.class |
|
) |
|
private Long updateBy; |
|
@DateTimeFormat( |
|
pattern = "yyyy-MM-dd HH:mm:ss" |
|
) |
|
@JsonFormat( |
|
pattern = "yyyy-MM-dd HH:mm:ss" |
|
) |
|
private Date updateAt; |
|
private Integer status; |
|
@TableLogic |
|
private Integer isDeleted; |
|
|
|
public BaseEntity() { |
|
} |
|
|
|
}
|
|
|