This commit is contained in:
邹宗楠
2023-02-13 18:20:40 +08:00
parent eab598efba
commit bcbe6e0d69

View File

@@ -1102,8 +1102,8 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf
skuPrice = nowPrice
}
sql := ` UPDATE store_sku_bind s SET s.price = ? WHERE s.sku_id = ? AND s.deleted_at = ?`
param := []interface{}{skuPrice, skuInfo.Id, utils.DefaultTimeValue}
sql := ` UPDATE store_sku_bind s SET s.price = ?,s.unit_price = ? WHERE s.sku_id = ? AND s.deleted_at = ?`
param := []interface{}{skuPrice, nowPrice, skuInfo.Id, utils.DefaultTimeValue}
globals.SugarLogger.Debugf("=================param %s", utils.Format4Output(param, false))
_, err = dao.ExecuteSQL(db, sql, param...)
globals.SugarLogger.Debugf("=================err %v", err)