|
@@ -22,7 +22,7 @@ func GetDictIndex(condition string, pars []interface{}, orderRule string) (dictI
|
|
|
if orderRule != "" {
|
|
|
order += fmt.Sprintf(`ORDER BY %s`, orderRule)
|
|
|
}
|
|
|
- sqlStatement := fmt.Sprintf("SELECT %s, 0 AS no FROM %s WHERE %s %s;", fields, IndexTableName, condition, order)
|
|
|
+ sqlStatement := fmt.Sprintf("SELECT %s, 0 no FROM %s WHERE %s %s", fields, IndexTableName, condition, order)
|
|
|
global.LOG.Info("GetDictIndex SQL: ", sqlStatement)
|
|
|
dictIndexList, err = getDictIndex(sqlStatement, pars)
|
|
|
if err != nil {
|