jinpengyong
2023-09-27 68e22957db996437fa20a9a4aa5ff37c54d4056f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
    }
}