fix hasOne bug
This commit is contained in:
parent
df925bf701
commit
5410f2e9d4
2 changed files with 8 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
// VERSION 版本号
|
||||
const VERSION = "0.7.0"
|
||||
const VERSION = "0.7.1"
|
||||
|
||||
// DOMAIN 许可域
|
||||
const DOMAIN = "*.iqka.com"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/yaoapp/gou"
|
||||
"github.com/yaoapp/kun/any"
|
||||
"github.com/yaoapp/kun/exception"
|
||||
"github.com/yaoapp/kun/utils"
|
||||
)
|
||||
|
||||
// loadAPIs 加载数据管理 API
|
||||
|
|
@ -234,6 +235,12 @@ func (api API) MergeDefaultQueryParam(param gou.QueryParam, i int) gou.QueryPara
|
|||
if defaults.Withs != nil {
|
||||
param.Withs = defaults.Withs
|
||||
}
|
||||
|
||||
if defaults.Select != nil {
|
||||
param.Select = defaults.Select
|
||||
utils.Dump(param.Select)
|
||||
}
|
||||
|
||||
if defaults.Wheres != nil {
|
||||
if param.Wheres == nil {
|
||||
param.Wheres = []gou.QueryWhere{}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue