增加表关联新建功能,同时修复数据库bug
This commit is contained in:
+2
-2
@@ -197,7 +197,7 @@ func (that *MakeCode) Db2JSON(name string, path string, db db.HoTimeDB) {
|
||||
//"must": false,
|
||||
}
|
||||
//备注以空格隔开,空格后的是其他备注
|
||||
indexNum := strings.Index(info.GetString("label"), " ")
|
||||
indexNum := strings.Index(info.GetString("label"), ":")
|
||||
if indexNum > 0 {
|
||||
coloum["label"] = info.GetString("label")[:indexNum]
|
||||
}
|
||||
@@ -241,7 +241,7 @@ func (that *MakeCode) Db2JSON(name string, path string, db db.HoTimeDB) {
|
||||
//if coloum.GetString("type") == "select" {
|
||||
|
||||
options := Slice{}
|
||||
comments := strings.Split(info.GetString("label"), " ")
|
||||
comments := strings.Split(info.GetString("label"), ":")
|
||||
if len(comments) >= 2 {
|
||||
optionComment := strings.Split(comments[1], ",")
|
||||
for _, v := range optionComment {
|
||||
|
||||
Reference in New Issue
Block a user