Kaynağa Gözat

fix:pdf报告同步修改推送

zqbao 5 ay önce
ebeveyn
işleme
526cecde66
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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)