- DeleteActStoreSkuBind中,对于取消活动(actStoreSkuParam为nil)删除活动商品
This commit is contained in:
@@ -580,6 +580,7 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
||||
for vendorID, act := range actMap {
|
||||
isDeleteAll := true
|
||||
isDeleteAtLeastOne := false
|
||||
if actStoreSkuParam != nil {
|
||||
actStoreSkuMap := partner.SplitActStoreSku(actStoreSkuMap[vendorID])
|
||||
for storeID := range actStoreSkuMap {
|
||||
for _, actStoreSku := range actStoreSkuMap[storeID] {
|
||||
@@ -597,6 +598,10 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
isDeleteAll = true
|
||||
isDeleteAtLeastOne = true
|
||||
}
|
||||
if isDeleteAll || isDeleteAtLeastOne {
|
||||
syncStatus := model.SyncFlagModifiedMask
|
||||
if isDeleteAll {
|
||||
|
||||
Reference in New Issue
Block a user