|
@@ -93,7 +93,8 @@ func (r *ReportPdf) ToView() (item *ReportPdfView) {
|
|
|
}
|
|
|
|
|
|
func (r *ReportPdf) Update(cols []string) (err error) {
|
|
|
- reportPushStatus := new(ReportPushStatus)
|
|
|
+ // reportPushStatus := new(ReportPushStatus)
|
|
|
+ var reportPushStatus *ReportPushStatus
|
|
|
o := orm.NewOrm()
|
|
|
sql := `SELECT * FROM report_push_status WHERE report_id=? AND report_type=?`
|
|
|
err = o.Raw(sql, r.ReportPdfId, utils.ReportTypePdf).QueryRow(&reportPushStatus)
|