package com.moral.api.pojo.bean;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
import java.io.Serializable;
|
|
/**
|
* @ClassName BaseDelEntity
|
* @Description TODO
|
* @Author @cjl
|
* @Date 2023-09-25 11:01
|
* @Version 1.0
|
*/
|
public abstract class BaseDelEntity <T extends Serializable> extends BaseUpdateEntity<T>{
|
/**
|
* 是否删除
|
*/
|
@TableLogic
|
@TableField(fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
|
private Integer isDel;
|
|
public T setIsDel(Integer isDel) {
|
this.isDel = isDel;
|
return (T) this;
|
}
|
|
public Integer getIsDel() {
|
return isDel;
|
}
|
}
|