This commit is contained in:
邹宗楠
2023-06-10 00:07:54 +08:00
parent c963c4446d
commit c00083fd05

View File

@@ -73,13 +73,13 @@ func (c *OrderManager) GetStoreOrderCountInfo(ctx *jxcontext.Context, storeID, l
lastHours = defLastHours
}
//权限
if permission.IsRoled(ctx) {
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
if storeIDsMap[storeID] == 0 {
storeID = -1
}
}
}
//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