zwxi 10 months ago
parent
commit
9c9268f46d
1 changed files with 1 additions and 1 deletions
  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
 }