This commit is contained in:
苏尹岚
2021-03-15 11:28:44 +08:00
parent 0d402ec65f
commit 8c526bc31f

View File

@@ -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