|
@ -159,8 +159,12 @@ func (this *Query) BuildSelectSql() (map[string]interface{}, error) { |
|
|
if this.dbname == "" && this.table == "" { |
|
|
if this.dbname == "" && this.table == "" { |
|
|
return nil, errors.New("参数错误,没有数据表") |
|
|
return nil, errors.New("参数错误,没有数据表") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
table := getTableName(this.dbname, this.table, this.dbtype) |
|
|
|
|
|
|
|
|
var table = "" |
|
|
|
|
|
if strings.Contains(this.table, "select ") { |
|
|
|
|
|
table = this.table |
|
|
|
|
|
} else { |
|
|
|
|
|
table = getTableName(this.dbname, this.table, this.dbtype) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// var err error
|
|
|
// var err error
|
|
|
|
|
|
|
|
|