This commit is contained in:
苏尹岚
2021-03-10 14:44:33 +08:00
parent dc523889f3
commit 6316344b94

View File

@@ -415,7 +415,6 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
fromTimeT, toTimeT = utils.Str2Time(fromTime), utils.Str2Time(toTime)
dayCount = int(fromTimeT.Sub(toTimeT).Hours())/24 + 1 //查的几天
)
fmt.Println("storeIDs1111111111111111111111111111111111", storeIDs)
//权限
if permission.IsRoled(ctx) {
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
@@ -427,10 +426,12 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
}
}
} else {
fmt.Println("storeIDs1111111111111111111111111111111111", storeIDsMap, ctx.GetUserID())
for k, _ := range storeIDsMap {
storeIDs2 = append(storeIDs2, k)
}
}
fmt.Println("storeIDs1111111111111111111111111111111111", storeIDs2)
storeIDs = nil
storeIDs = storeIDs2
}