From 8c526bc31fa7949f0ccbdf22fb60927d0b09cec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 15 Mar 2021 11:28:44 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/orderman_ext.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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