Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ppxb opened this issue Oct 25, 2024 · 0 comments
Open

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

ppxb opened this issue Oct 25, 2024 · 0 comments

Comments

@ppxb
Copy link

ppxb commented Oct 25, 2024

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

如:

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

private Boolean deletedFlag;
}

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

@TableLogic(value = "0", delval = "1")
private Boolean deletedFlag;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant