zwxi 11 달 전
부모
커밋
61a7036207
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/smart_report.go

+ 1 - 1
models/smart_report.go

@@ -212,7 +212,7 @@ type SmartReportResource struct {
 }
 
 func GetResourceItemById(id int) (item *SmartReportResource, err error) {
-	o := orm.NewOrmUsingDB("rddp")
+	o := orm.NewOrm()
 	sql := fmt.Sprintf(`SELECT * FROM smart_report_resource WHERE resource_id = ? LIMIT 1`)
 	err = o.Raw(sql, id).QueryRow(&item)
 	return