create.go 267 B

123456789
  1. package report_view_log
  2. import "hongze/hongze_yb/global"
  3. // CreateInBatches 批量新增
  4. func CreateInBatches(reportLogs []*ReportViewLog) (err error) {
  5. err = global.MYSQL["rddp"].Model(ReportViewLog{}).CreateInBatches(reportLogs, len(reportLogs)).Error
  6. return
  7. }