Эх сурвалжийг харах

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

baoziqiang 6 сар өмнө
parent
commit
3a3abba38f
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      models/report_pdf.go

+ 2 - 1
models/report_pdf.go

@@ -189,7 +189,8 @@ func (r *ReportPdf) Update(cols []string) (err error) {
 			reportPushStatus.Author = r.Author
 			reportPushStatus.PublishTime = r.PublishTime
 			reportPushStatus.ModifyTime = time.Now()
-			_, err = tx.Update(reportPushStatus)
+			updateCols := []string{"title", "abstract", "stage", "classify_id_first", "classify_name_first", "classify_id_second", "classify_name_second", "classify_id_third", "classify_name_third", "author", "publish_time", "modify_time"}
+			_, err = tx.Update(reportPushStatus, updateCols...)
 		}
 	}
 	return