fix 替换us_price

This commit is contained in:
timerzz 2024-06-15 21:26:42 +08:00
parent 585b23cbfb
commit 248ca98840

View File

@ -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",