hsun 1 年之前
父节点
当前提交
f44736696f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/jiayue/dict.go

+ 1 - 1
models/jiayue/dict.go

@@ -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 {