diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index db3b86369..eac0cf633 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -650,9 +650,17 @@ func (v *VendorSync) AmendAndPruneStoreStuff(ctx *jxcontext.Context, vendorIDs [ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, parentTask tasksch.ITask, db *dao.DaoDB, taskName string, isAsync, isManageIt bool, vendorIDs []int, storeIDs []int, mustDirty bool, handler tasksch.WorkFunc, isContinueWhenError bool) (task tasksch.ITask, hint string, err error) { var storeMapList []*model.StoreMap - if storeMapList, err = dao.GetStoresMapList2(db, vendorIDs, storeIDs, nil, model.StoreStatusAll, model.StoreIsSyncYes, "", "", mustDirty); err != nil { + var storeMapList2 []*model.StoreMap + if storeMapList2, err = dao.GetStoresMapList2(db, vendorIDs, storeIDs, nil, model.StoreStatusAll, model.StoreIsSyncYes, "", "", mustDirty); err != nil { return nil, "", err } + if len(storeIDs) == 1 { + storeMapList = storeMapList2 + } else { + // for _, v := range storeMapList2 { + // storeList, _ := dao.GetStoreList(db, []int{v.StoreID}, nil, nil, nil, "") + // } + } if len(storeMapList) == 0 { return nil, "", nil }