level, jdsorder 30minu

This commit is contained in:
苏尹岚
2020-10-16 18:14:54 +08:00
parent 30433d0ebf
commit f6feb80971
3 changed files with 13 additions and 11 deletions

View File

@@ -650,17 +650,9 @@ 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
var storeMapList2 []*model.StoreMap
if storeMapList2, err = dao.GetStoresMapList2(db, vendorIDs, storeIDs, nil, model.StoreStatusAll, model.StoreIsSyncYes, "", "", mustDirty); err != nil {
if storeMapList, 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
}