litesuits / android-lite-orm

LiteOrm is a fast, small, powerful ORM framework for Android. LiteOrm makes you do CRUD operarions on SQLite database with a sigle line of code efficiently.
http://litesuits.com?form=gorm
Apache License 2.0
1.49k stars 362 forks source link

查询中一对多的问题 #77

Open JamesLiAndroid opened 5 years ago

JamesLiAndroid commented 5 years ago

查询过程中一对多的问题,我的问题在于一对多过程中的条件筛选

比如说一个老师对应多个学生,学生有出勤、缺勤的这两种状态,我要统计该老师下面出勤学生的数量,该如何进行筛选?