From 248ca98840e1aa02d8a2d6edc522fcd533036f94 Mon Sep 17 00:00:00 2001 From: timerzz Date: Sat, 15 Jun 2024 21:26:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9B=BF=E6=8D=A2us=5Fprice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/product/model_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/product/model_test.go b/model/product/model_test.go index c9afb0d..a4be418 100644 --- a/model/product/model_test.go +++ b/model/product/model_test.go @@ -23,7 +23,7 @@ func TestUpsert(t *testing.T) { } db.Clauses(clause.OnConflict{ Columns: []clause.Column{{Name: "pid"}}, - DoUpdates: clause.AssignmentColumns([]string{"name", "color", "link", "orderable", "us_price", "cny_price", "cal_mark", "rate"}), + DoUpdates: clause.AssignmentColumns([]string{"name", "color", "link", "orderable", "original_price", "cny_price", "cal_mark", "rate"}), }).Create([]Product{ { Name: "test",