10000 在使用find查表时不支持多条件查询 · Issue #599 · kotlin-orm/ktorm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

在使用find查表时不支持多条件查询 #599

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

Open
ZhuLi-fy opened this issue Jan 20, 2025 · 2 comments
Open

在使用find查表时不支持多条件查询 #599

ZhuLi-fy opened this issue Jan 20, 2025 · 2 comments

Comments

@ZhuLi-fy
Copy link

在使用实体序列的时候,文档中没有提到多条件查询的例子,自然而然地想到用类似下面的方法

val temp = database.articles.find {
    it.aid eq aidT;
    it.uid eq uidT;
}

或者

val temp = database.articles.find {
    (it.aid eq aidT) and (it.uid eq uidT)
}

但是并不生效,始终以最后一个eq作为查询条件;
我能使用其他方式实现功能,但作者能否更新下文档说明下呢

@vincentlauvlwj
Copy link
Member

为什么 and 不生效

@ZhuLi-fy
Copy link
Author

sorry啊,是生效的,这个是我眼花了,昨天应该是没有重新编译部署;今天使用没问题。
请删除了这个issue吧,给您添麻烦了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
< 3838 div class="discussion-sidebar-item sidebar-progress-bar js-discussion-sidebar-item" >
Milestone
No milestone
Development

No branches or pull requests

2 participants
0