jiangshuai
2023-11-17 bb5d729a62fa5e6875114018562458ea29ea1649
models/operation_details.go
@@ -100,6 +100,9 @@
   if slf.ProductId != "" {
      db = db.Where("product_id = ?", slf.ProductId)
   }
   if slf.Preload {
      db = db.Preload("Product")
   }
   return db
}