diff --git a/code/makecode.go b/code/makecode.go index 85906a9..6f3e949 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -175,8 +175,9 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) { if coloum == nil { //根据类型判断真实类型 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 + break } }