This commit is contained in:
邹宗楠
2022-11-15 15:35:20 +08:00
parent 947be09eda
commit 3f3fb5f106

View File

@@ -264,7 +264,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
temp.TemplateID = param.FreightId
globals.SugarLogger.Debugf("================temp:= %s", utils.Format4Output(temp, false))
_, err = dao.UpdateEntity(db, &temp, "TemplateID")
_, err = dao.UpdateEntity(db, temp, "TemplateID")
globals.SugarLogger.Debugf("================err:= %s", utils.Format4Output(err, false))
}
if temp.TradeLimitID != 0 {
@@ -276,7 +276,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
return nil, err
}
temp.TradeLimitID = param.SaleLimitId
_, err = dao.UpdateEntity(db, &temp, "TradeLimitID")
_, err = dao.UpdateEntity(db, temp, "TradeLimitID")
globals.SugarLogger.Debugf("================2err:= %s", utils.Format4Output(err, false))
}
}