fix 替换us_price
All checks were successful
Build image / build (push) Successful in 1m5s

This commit is contained in:
timerzz 2024-06-15 21:26:41 +08:00
parent 49bac5e9db
commit 05e992ab00

View File

@ -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
}