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

逻辑删除支持设置id #127

Open
zhuangjiaju opened this issue Jan 15, 2021 · 0 comments
Open

逻辑删除支持设置id #127

zhuangjiaju opened this issue Jan 15, 2021 · 0 comments

Comments

@zhuangjiaju
Copy link

逻辑删除使用 del_flag 1 都表示 存在 -1 表示删除。
有个问题 比如 我order_id 需要唯一键 这样 删除2次就炸了。没法建立唯一键了。

解决方案了 del_flag 0 代表 存在 0以外的代表删除。
update set del_flag=id 来逻辑删除。

但是插件不支持。

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