diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 52d2d458c..5699a19f6 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -870,7 +870,7 @@ func (c *OrderManager) GetAfsOrders(ctx *jxcontext.Context, keyword, afsOrderID, if permission.IsRoled(ctx) { if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil { var storeIDs2 []int - if storeIDList != nil { + if len(storeIDList) > 0 { for _, v := range storeIDList { if storeIDsMap[v] != 0 { storeIDs2 = append(storeIDs2, v) @@ -881,6 +881,7 @@ func (c *OrderManager) GetAfsOrders(ctx *jxcontext.Context, keyword, afsOrderID, storeIDs2 = append(storeIDs2, k) } } + storeIDList = nil storeIDList = storeIDs2 } }