All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nxyfan.framework.common.pojo.CommonEntity Maven / Gradle / Ivy

package com.nxyfan.framework.common.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;

/**
 * 

* 通用基础字段实体:创建时间、创建人、修改时间、修改人,需要此通用字段的实体可继承此类, * 继承此类要求数据表有对应的字段 *

* * @author amour * @date 2020/3/10 16:02 */ @SuppressWarnings("serial") @Getter @Setter public class CommonEntity implements Serializable { /** 删除标志 */ @TableLogic @ApiModelProperty(value = "删除标志", position = 999) @TableField(fill = FieldFill.INSERT) private String deleteMark; /** 创建时间 */ @ApiModelProperty(value = "创建时间", position = 1000) @TableField(fill = FieldFill.INSERT) private String createDateTime; /** 创建人 */ @ApiModelProperty(value = "创建人", position = 1001) @TableField(fill = FieldFill.INSERT) private String createUserFlow; /** 更新时间 */ @ApiModelProperty(value = "更新时间", position = 1002) @TableField(fill = FieldFill.UPDATE) private String updateDateTime; /** 更新人 */ @ApiModelProperty(value = "更新人", position = 1003) @TableField(fill = FieldFill.UPDATE) private String updateUserFlow; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy