fix 替换us_price
This commit is contained in:
parent
585b23cbfb
commit
248ca98840
@ -23,7 +23,7 @@ func TestUpsert(t *testing.T) {
|
|||||||
}
|
}
|
||||||
db.Clauses(clause.OnConflict{
|
db.Clauses(clause.OnConflict{
|
||||||
Columns: []clause.Column{{Name: "pid"}},
|
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{
|
}).Create([]Product{
|
||||||
{
|
{
|
||||||
Name: "test",
|
Name: "test",
|
||||||
|
Loading…
Reference in New Issue
Block a user