Skip to content
New issue

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

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

Already on GitHub? # to your account

如何逻辑删除 #301

Closed
bullhe4d opened this issue Aug 13, 2021 · 3 comments
Closed

如何逻辑删除 #301

bullhe4d opened this issue Aug 13, 2021 · 3 comments

Comments

@bullhe4d
Copy link

bullhe4d commented Aug 13, 2021

在Roadmap里看到支持逻辑删除?但是并没看到相关代码?想知道4.7.2版本下支持逻辑删除么?应该怎么做?

@TommyLemon
Copy link
Collaborator

TommyLemon commented Aug 13, 2021

用 /put,修改业务上已删除的标识字段,例如把 is_deleted 改为 1
https://github.com/Tencent/APIJSON/blob/master/Document.md#3

@bullhe4d
Copy link
Author

谢谢回复,在需要查询未删除数据的时候应该把判断( is_deleted != 1)加在哪里呢?

@TommyLemon
Copy link
Collaborator

直接在请求 JSON 表对象里加,或者在 DemoObjectParser 重写 newSQLConfig,RequestMethod.isQueryMethod(method, true) 时固定把 is_deleted, 0 加进去

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants