diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 1aacd4b44..07b40f08c 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -73,7 +73,14 @@ func (c *OrderManager) GetStoreOrderCountInfo(ctx *jxcontext.Context, storeID, l } else if lastHours == 0 && lastMinutes == 0 { lastHours = defLastHours } - + //权限 + if permission.IsRoled(ctx) { + if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil { + if storeIDsMap[storeID] == 0 { + storeID = -1 + } + } + } db := dao.GetDB() sql := ` SELECT t1.lock_status, t1.status, COUNT(*) count