liujiandao
2023-11-27 dc73bb0a098f9c176ea4b6e920a5e70d9a618833
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
}