jiangshuai
2023-12-12 ec58bf196fb360bfcec35ed784ae9da90ffa3d42
models/operation.go
@@ -158,8 +158,7 @@
   }
   if slf.Preload {
      db = db.Model(&Operation{}).Preload("Details").Preload("Details.Product").Preload("FromLocation").
         Preload("ToLocation").Preload("LogisticCompany")
      db = db.Model(&Operation{}).Preload("Details").Preload("Details.Product").Preload("LogisticCompany").Preload("FromLocation").Preload("ToLocation")
   }
   if slf.Disuse {