Skip to content

Commit

Permalink
3.0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzue committed May 30, 2021
1 parent ea996e4 commit ace1490
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbv3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ def siteUrl = 'https://github.com/kongzue/DBV3' //项目在github主页地址
def gitUrl = 'https://github.com/kongzue/DBV3.git' //Git仓库的地址

group = "com.kongzue.db"//发布aar前缀根节点
version = "3.0.3.7"//发布aar的库版本
version = "3.0.3.8"//发布aar的库版本

android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
versionCode 17
versionName "3.0.3.7"
versionCode 18
versionName "3.0.3.8"
}

buildTypes {
Expand Down
11 changes: 11 additions & 0 deletions dbv3/src/main/java/com/kongzue/dbv3/DB.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,17 @@ public DBData findSingle() {
return dataList.get(0);
}

/**
* 查询该表第一个符合条件的数据
*
* @return 查询结果
*/
public DBData findSingle(DBData findConditions) {
List<DBData> dataList = DBHelper.getInstance().findData(tableName, findConditions, sort, whereConditions, limitStart, limitCount);
if (dataList == null || dataList.isEmpty()) return null;
return dataList.get(0);
}

/**
* 设置分页查询条件
*
Expand Down

0 comments on commit ace1490

Please sign in to comment.