From 0cdbd4911852e7cfb0af3319bd53d0618929ecac Mon Sep 17 00:00:00 2001 From: timerzz Date: Mon, 2 Sep 2024 21:22:28 +0800 Subject: [PATCH] =?UTF-8?q?feat=20preload=E8=8E=B7=E5=8F=96CalculateProces?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/storage/article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/storage/article.go b/structs/storage/article.go index 32e4e76..8c1b3e8 100644 --- a/structs/storage/article.go +++ b/structs/storage/article.go @@ -131,7 +131,7 @@ func NewGetArticleQuery() *GetArticleQuery { } func (g *GetArticleQuery) Scope(db *gorm.DB) *gorm.DB { - db = db.Preload("Providers").Preload("Sellers") + db = db.Preload("Providers").Preload("Providers.CalculateProcess").Preload("Sellers").Preload("Sellers.CalculateProcess") if g.ID != 0 { db = db.Where("id=?", g.ID) }