This commit is contained in:
parent
49bac5e9db
commit
05e992ab00
@ -120,6 +120,6 @@ func (c *Controller) saveRespData(list []coach_client.Product) error {
|
||||
})
|
||||
return c.db.Clauses(clause.OnConflict{
|
||||
Columns: []clause.Column{{Name: "pid"}},
|
||||
DoUpdates: clause.AssignmentColumns([]string{"name", "color", "link", "orderable", "us_price", "cny_price", "cal_mark", "rate", "price_status", "disc_percent", "updated_at"}),
|
||||
DoUpdates: clause.AssignmentColumns([]string{"name", "color", "link", "orderable", "original_price", "cny_price", "cal_mark", "rate", "price_status", "disc_percent", "updated_at"}),
|
||||
}).Create(products).Error
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user