|
@@ -66,7 +66,7 @@ func GetSysAdminByIdSlice(adminIdList []string) (items []*Admin, err error) {
|
|
|
}
|
|
|
|
|
|
func GetAdminByGroupId(groupId int) (items []*AdminItem, err error) {
|
|
|
- o := orm.NewOrmUsingDB("weekly")
|
|
|
+ o := orm.NewOrm()
|
|
|
sql := `SELECT * FROM admin WHERE group_id=? ORDER BY created_time DESC`
|
|
|
_, err = o.Raw(sql, groupId).QueryRows(&items)
|
|
|
return
|