package com.xinquan.common.core.web.domain;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
|
/**
|
* Entity基类
|
*
|
* @author ruoyi
|
*/
|
public class BaseModel implements Serializable
|
{
|
private static final long serialVersionUID = 1L;
|
|
/** 创建者 */
|
@ApiModelProperty(value = "记录创建人,前端忽略")
|
@TableField(value = "create_by", fill = FieldFill.INSERT)
|
private String createBy;
|
|
/** 创建时间 */
|
@ApiModelProperty(value = "记录创建时间,前端忽略")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@TableField(value = "create_time", fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
/** 更新者 */
|
@ApiModelProperty(value = "记录修改人,前端忽略")
|
@TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
|
private String updateBy;
|
|
/** 更新时间 */
|
@ApiModelProperty(value = "记录修改时间,前端忽略")
|
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
/** 是否删除 0未删除 1已删除 */
|
@TableField("del_flag")
|
@ApiModelProperty(value = "是否删除 0未删除 1已删除")
|
@TableLogic
|
private Integer delFlag;
|
|
|
public String getCreateBy() {
|
return createBy;
|
}
|
|
public void setCreateBy(String createBy) {
|
this.createBy = createBy;
|
}
|
|
public LocalDateTime getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(LocalDateTime createTime) {
|
this.createTime = createTime;
|
}
|
|
public String getUpdateBy() {
|
return updateBy;
|
}
|
|
public void setUpdateBy(String updateBy) {
|
this.updateBy = updateBy;
|
}
|
|
public LocalDateTime getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(LocalDateTime updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public Integer getDelFlag() {
|
return delFlag;
|
}
|
|
public void setDelFlag(Integer delFlag) {
|
this.delFlag = delFlag;
|
}
|
}
|