- debug in Convert2JDSPU
This commit is contained in:
@@ -274,6 +274,7 @@ func Convert2JDSPU(ctx *jxcontext.Context, count int, isAsync, isContinueWhenErr
|
||||
if skuNameNew.Status == model.SkuStatusDontSale {
|
||||
skuNew.Status = model.SkuStatusDontSale
|
||||
}
|
||||
globals.SugarLogger.Debugf("Convert2JDSPU, sku:%s", utils.Format4Output(skuNew, false))
|
||||
if err = dao.CreateEntity(db, skuNew); err != nil {
|
||||
dao.Rollback(db)
|
||||
return "", err
|
||||
@@ -282,6 +283,7 @@ func Convert2JDSPU(ctx *jxcontext.Context, count int, isAsync, isContinueWhenErr
|
||||
for _, placeBind := range skuNamePlaceBindList {
|
||||
dao.WrapAddIDCULEntity(placeBind, ctx.GetUserName())
|
||||
placeBind.NameID = skuNameNew.ID
|
||||
globals.SugarLogger.Debugf("Convert2JDSPU, placeBind:%s", utils.Format4Output(placeBind, false))
|
||||
if err = dao.CreateEntity(db, placeBind); err != nil {
|
||||
dao.Rollback(db)
|
||||
return "", err
|
||||
|
||||
Reference in New Issue
Block a user