1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user