+ GetAllStoresVendorID

This commit is contained in:
gazebo
2019-07-22 15:38:01 +08:00
parent a4470e5fb5
commit 8406359a7c
6 changed files with 31 additions and 17 deletions

View File

@@ -536,7 +536,7 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, parentTask tasksch.
var vendorStoreIDs []string
if vendorStoreID == "" {
vendorStoreIDs, err = api.MtwmAPI.PoiGetIDs()
vendorStoreIDs, err = c.GetAllStoresVendorID(ctx)
if err != nil {
return nil, err
}

View File

@@ -192,3 +192,8 @@ func (c *PurchaseHandler) UpdateStoreOpTime(ctx *jxcontext.Context, storeID int,
}
return err
}
func (c *PurchaseHandler) GetAllStoresVendorID(ctx *jxcontext.Context) (vendorStoreIDs []string, err error) {
vendorStoreIDs, err = api.MtwmAPI.PoiGetIDs()
return vendorStoreIDs, err
}