mirror of
https://github.com/vran-dev/databasir.git
synced 2025-10-29 11:29:19 +08:00
feat: add integration test (#65)
* feat: add integration test * feat: update action config * fix: action run failed * feat: add test report step in action
This commit is contained in:
@@ -86,6 +86,12 @@ public abstract class BaseDao<R> {
|
||||
.fetchOptionalInto(pojoType);
|
||||
}
|
||||
|
||||
public List<R> selectList(Condition condition) {
|
||||
return getDslContext()
|
||||
.select(table.fields()).from(table).where(condition)
|
||||
.fetchInto(pojoType);
|
||||
}
|
||||
|
||||
public R selectOne(Condition condition) {
|
||||
return selectOptionalOne(condition)
|
||||
.orElseThrow(() -> new DataNotExistsException("data not exists in "
|
||||
|
||||
Reference in New Issue
Block a user