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