Skip to content

Entity的逻辑删除似乎没有生效 #65

Open
@ppxb

Description

项目几乎所有的实体都设立了 deletedFlag 字段,但并没有实现 mybatis-plus 的逻辑删除。

如:

@Data
@TableName(value = "t_position")
public class PositionEntity {
/** 字段信息 */

private Boolean deletedFlag;
}

是否应该加上 TableLogic 实现逻辑删除呢?

@TableLogic(value = "0", delval = "1")
private Boolean deletedFlag;

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions