zhangqian
2024-07-04 c950586b718ae6fc198bedf424609a4ac94cb5d1
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)