|
@@ -67,7 +67,7 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
|
|
|
|
|
|
//获取用户报名成功数量
|
|
//获取用户报名成功数量
|
|
func GetResourceDataCount(condition string, pars []interface{}) (count int, err error) {
|
|
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()
|
|
o := orm.NewOrm()
|
|
err = o.Raw(sqlCount, pars).QueryRow(&count)
|
|
err = o.Raw(sqlCount, pars).QueryRow(&count)
|
|
return
|
|
return
|