|
@@ -98,9 +98,8 @@ func GetYanxuanSpecialAuthorList(condition string, pars []interface{}, startSize
|
|
if condition != "" {
|
|
if condition != "" {
|
|
sql += condition
|
|
sql += condition
|
|
}
|
|
}
|
|
- //sql += ` LIMIT ?,? `
|
|
|
|
|
|
+ sql += ` LIMIT ?,? `
|
|
_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
|
|
_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
|
|
- _, err = o.Raw(sql, pars).QueryRows(&items)
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -112,3 +111,11 @@ func UpdateSpecialAuthorComapony(userId, CompanyId int, CompanyName string) (err
|
|
_, err = o.Raw(sql, CompanyId, CompanyName, userId).Exec()
|
|
_, err = o.Raw(sql, CompanyId, CompanyName, userId).Exec()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// 通过ID获取详情
|
|
|
|
+func GetCygxYanxuanSpecialAuthorItemById(id int) (item *CygxYanxuanSpecialAuthorItem, err error) {
|
|
|
|
+ o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
|
+ sql := `SELECT * FROM cygx_yanxuan_special_author WHERE id=? `
|
|
|
|
+ err = o.Raw(sql, id).QueryRow(&item)
|
|
|
|
+ return
|
|
|
|
+}
|