Browse Source

Merge branch 'bzq/dev' of eta_mini/eta_mini_crm into debug

baoziqiang 6 tháng trước cách đây
mục cha
commit
852d68d2ff
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      models/report_pdf.go

+ 2 - 1
models/report_pdf.go

@@ -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)