修复部分bug

This commit is contained in:
hoteas 2022-11-17 17:17:07 +08:00
parent be41a70c76
commit 7535300107

View File

@ -175,8 +175,9 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) {
if coloum == nil { if coloum == nil {
//根据类型判断真实类型 //根据类型判断真实类型
for k, v1 := range ColumnDataType { for k, v1 := range ColumnDataType {
if strings.Contains(info.GetString("name"), k) || strings.Contains(info.GetString("type"), k) { if strings.Contains(info.GetString("type"), k) {
info["type"] = v1 info["type"] = v1
break
} }
} }