com.liguanqiao.grow.mybaits.puls.entity.BaseEntity Maven / Gradle / Ivy
package com.liguanqiao.grow.mybaits.puls.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
/**
* @author liguanqiao
* @since 2022/12/14
**/
@Getter
@Setter
@Accessors(chain = true)
public abstract class BaseEntity {
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy