diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index e212cc4dd..a425d6784 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1081,7 +1081,9 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act actStoreSkuMap := partner.SplitActStoreSku(actStoreSkuMap[vendorID]) for storeID := range actStoreSkuMap { for _, actStoreSku := range actStoreSkuMap[storeID] { + globals.SugarLogger.Debugf("---------act := %s", utils.Format4Output(act, false)) if actStoreSkuParam == nil || actStoreSkuParamMap[jxutils.Combine2Int(actStoreSku.StoreID, actStoreSku.SkuID)] != nil { + globals.SugarLogger.Debugf("---------act Type:= %d", act.Type) if act.Type == model.ActSkuFake { _, err = dao.DeleteEntityLogically(db, &model.ActStoreSkuMap{}, nil, ctx.GetUserName(), map[string]interface{}{ @@ -1109,6 +1111,8 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act isDeleteAll = true isDeleteAtLeastOne = true } + globals.SugarLogger.Debugf("---------act isDeleteAll:= %v", isDeleteAtLeastOne) + globals.SugarLogger.Debugf("---------act isDeleteAtLeastOne:= %v", isDeleteAtLeastOne) if isDeleteAll || isDeleteAtLeastOne { syncStatus := int8(model.SyncFlagModifiedMask) if isDeleteAll {