Android litepal where 多条件查询 IN 条件查询

错误用法 

 

这里的inArgs 包括 in的参数 和 后面两个条件的值;

List tasks = LitePal.where("tch_id in (?) and uploadstatus = ? and readstate =?", inArgs).find(Task.class);

正确用法

这里的inArgs 只包括 in的值"1,2,3"

 LitePal.where(String.format("tch_id in (%s) and uploadstatus = ? and readstate =? and bczs is not null",inArgs),"0","1").find(Task.class);

你可能感兴趣的:(错误,记录)