Browse Source

Merge branch 'pdf_fix' into debug

zwxi 11 tháng trước cách đây
mục cha
commit
020eaa7658
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/smart_report/smart_report.go

+ 1 - 1
models/smart_report/smart_report.go

@@ -423,7 +423,7 @@ func UpdateSmartReportsStateBySecondIds(oldState, newState int, secondIds []int)
 // UpdatePdfUrlSmartReportById 清空pdf相关字段
 func UpdatePdfUrlSmartReportById(reportId int) (err error) {
 	o := orm.NewOrmUsingDB("rddp")
-	sql := `UPDATE smart_report SET detail_img_url = '',detail_pdf_url='',modify_time=NOW() WHERE id = ? `
+	sql := `UPDATE smart_report SET detail_img_url = '',detail_pdf_url='',modify_time=NOW() WHERE smart_report_id = ? `
 	_, err = o.Raw(sql, reportId).Exec()
 	return
 }