浏览代码

Merge branch 'pdf_fix' into debug

zwxi 11 月之前
父节点
当前提交
020eaa7658
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 }