From 225777405cc6c1bf3e3d1a94db8fbb80dcbe1bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 19 Aug 2025 10:35:02 +0800 Subject: [PATCH] 1 --- business/jxstore/act/act.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index a425d6784..737f680f0 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1020,6 +1020,7 @@ func CancelAct(ctx *jxcontext.Context, actID int) (err error) { // actStoreSkuParam为空,不会删除act_store_sku,但会删除act_store_sku_map func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, actStoreSkuParam []*ActStoreSkuParam) (originSyncStatus int8, err error) { + globals.SugarLogger.Debugf("-----actStoreSkuParam- := %s", utils.Format4Output(actStoreSkuParam, false)) actMap, err := dao.GetActVendorInfo(db, actID, nil) if err != nil { return 0, err @@ -1073,6 +1074,7 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act } } isNeedCancelAct := true + globals.SugarLogger.Debugf("-----actStoreSkuParamMap- := %s", utils.Format4Output(actStoreSkuParamMap, false)) for vendorID, act := range actMap { originSyncStatus |= act.SyncStatus isDeleteAll := true @@ -1081,7 +1083,7 @@ 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)) + globals.SugarLogger.Debugf("---------bool := %v", actStoreSkuParam == nil || actStoreSkuParamMap[jxutils.Combine2Int(actStoreSku.StoreID, actStoreSku.SkuID)] != nil) if actStoreSkuParam == nil || actStoreSkuParamMap[jxutils.Combine2Int(actStoreSku.StoreID, actStoreSku.SkuID)] != nil { globals.SugarLogger.Debugf("---------act Type:= %d", act.Type) if act.Type == model.ActSkuFake {