lishihai
2024-07-03 91d7ca06128f996844aa7d2d691d083c944bdf1d
task/warehouse_month_stats.go
@@ -62,6 +62,9 @@
      }
      for _, record := range statsRecords {
         if len(record.InputItems) == 0 {
            continue
         }
         record.BeginAmount = record.EndAmount
         err = models.WithTransaction(func(db *gorm.DB) error {
            err = models.NewWarehouseMonthStatsSearch().SetOrm(db).Create(record)