|
|
@@ -1,5 +1,7 @@ |
|
|
|
package com.ningdatech.pmapi.sys.model.entity; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.FieldFill; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
@@ -20,15 +22,19 @@ import java.time.LocalDateTime; |
|
|
|
public class BaseEntity implements Serializable { |
|
|
|
|
|
|
|
@ApiModelProperty("创建人userId") |
|
|
|
@TableField(fill = FieldFill.INSERT) |
|
|
|
protected Long createBy; |
|
|
|
|
|
|
|
@ApiModelProperty("最后修改人userId") |
|
|
|
@TableField(fill = FieldFill.INSERT_UPDATE) |
|
|
|
protected Long updateBy; |
|
|
|
|
|
|
|
@ApiModelProperty("创建时间") |
|
|
|
@TableField(fill = FieldFill.INSERT) |
|
|
|
protected LocalDateTime createOn; |
|
|
|
|
|
|
|
@ApiModelProperty("修改时间") |
|
|
|
@TableField(fill = FieldFill.INSERT_UPDATE) |
|
|
|
protected LocalDateTime updateOn; |
|
|
|
|
|
|
|
} |