QueryBuilder<VideoTagInfo, Integer> queryBuilder = videoTagInfoIntegerDao.queryBuilder();
try {
queryBuilder.where().eq("value",roomId).and().eq("myFocus",true);
VideoTagInfo videoTagInfo = queryBuilder.queryForFirst();
long count = queryBuilder.countOf();
Log.i("ss","___________________________________count:"+count+"_____videoTagInfo:"+videoTagInfo);
if(videoTagInfo != null){
return true;
}
} catch (SQLException e) {
Log.i("ss","____________________________________________e:"+e);
e.printStackTrace();
}
android ormlite queryBuilder.where() 多条件
最新推荐文章于 2024-06-28 10:17:44 发布