zhangqian
2023-11-25 efec800478214f3a412f879d2b51c2968515995d
model/production_progress.go
@@ -133,17 +133,6 @@
   return nil
}
// CreateBatch 批量插入
func (slf *ProductionProgressSearch) CreateBatch(records []*ProductionProgress) error {
   var db = slf.build()
   if err := db.Create(&records).Error; err != nil {
      return fmt.Errorf("create batch err: %v, records: %+v", err, records)
   }
   return nil
}
func (slf *ProductionProgressSearch) Save(record *ProductionProgress) error {
   var db = slf.build()