1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user