xingzai 2 жил өмнө
parent
commit
0edad9849f

+ 1 - 1
models/resource_data.go

@@ -67,7 +67,7 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
 
 //获取用户报名成功数量
 func GetResourceDataCount(condition string, pars []interface{}) (count int, err error) {
-	sqlCount := `SELECT COUNT(1) AS count FROM cygx_resource_data WHERE   WHERE 1= 1 ` + condition
+	sqlCount := `SELECT COUNT(1) AS count FROM cygx_resource_data    WHERE 1= 1 ` + condition
 	o := orm.NewOrm()
 	err = o.Raw(sqlCount, pars).QueryRow(&count)
 	return