1
This commit is contained in:
@@ -584,11 +584,8 @@ func setStoreMapInfo(ctx *jxcontext.Context, db *dao.DaoDB, storesInfo *StoresIn
|
||||
func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interface{}, offset, pageSize int, orderTimeFrom, orderTimeTo time.Time, orderCountFrom, orderCountTo int) (retVal *StoresInfo, err error) {
|
||||
briefLevel := int(utils.ForceInterface2Int64(params["briefLevel"]))
|
||||
//权限
|
||||
globals.SugarLogger.Debugf("-----keyword :%s", keyword)
|
||||
globals.SugarLogger.Debugf("-----params :%s", utils.Format4Output(params, false))
|
||||
if permission.IsRoled(ctx) {
|
||||
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
||||
globals.SugarLogger.Debugf("-----storeIDsMap :%s", utils.Format4Output(storeIDsMap, false))
|
||||
var storeIDs2 []int
|
||||
if params["storeIDs"] != nil {
|
||||
var storeIDs []int
|
||||
@@ -604,7 +601,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
}
|
||||
} else {
|
||||
if params["storeID"] != nil && len(storeIDsMap) > 0 {
|
||||
if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 {
|
||||
if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 && int(utils.Interface2Int64WithDefault(params["storeID"], 0)) != 666666 {
|
||||
params["storeID"] = nil
|
||||
}
|
||||
} else if len(storeIDsMap) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user