mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix]异常
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,6 +9,7 @@
|
|||||||
*.test
|
*.test
|
||||||
.idea
|
.idea
|
||||||
pandax
|
pandax
|
||||||
|
static
|
||||||
|
|
||||||
*.git
|
*.git
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import (
|
|||||||
"pandax/apps/develop/entity"
|
"pandax/apps/develop/entity"
|
||||||
"pandax/apps/develop/gen"
|
"pandax/apps/develop/gen"
|
||||||
"pandax/apps/develop/services"
|
"pandax/apps/develop/services"
|
||||||
|
"pandax/pkg/global"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
@@ -104,7 +105,8 @@ func (g *GenTableApi) Insert(rc *restfulx.ReqCtx) {
|
|||||||
}
|
}
|
||||||
genTable, err := tg.Generate()
|
genTable, err := tg.Generate()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
biz.ErrIsNil(err, "创建表结构")
|
global.Log.Error("创建表结构")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
genTable.OrgId = rc.LoginAccount.OrganizationId
|
genTable.OrgId = rc.LoginAccount.OrganizationId
|
||||||
genTable.Owner = rc.LoginAccount.UserName
|
genTable.Owner = rc.LoginAccount.UserName
|
||||||
|
|||||||
Reference in New Issue
Block a user