1
This commit is contained in:
@@ -483,6 +483,7 @@ func GetUsers(ctx *jxcontext.Context, userType int, keyword string, userIDs []st
|
|||||||
|
|
||||||
func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeList []*dao.StoreWithCityName, err error) {
|
func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeList []*dao.StoreWithCityName, err error) {
|
||||||
roleList, err := api2.RoleMan.GetUserRoleList(userID)
|
roleList, err := api2.RoleMan.GetUserRoleList(userID)
|
||||||
|
globals.SugarLogger.Debugf("--------roleList- :%s", utils.Format4Output(roleList, false))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -498,11 +499,12 @@ func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(storeIDs) == model.NO && len(shortRoleNameList) == model.NO {
|
//if len(storeIDs) == model.NO && len(shortRoleNameList) == model.NO {
|
||||||
return nil, nil
|
// return nil, nil
|
||||||
}
|
//}
|
||||||
|
|
||||||
storeList, err = dao.GetStoreListByMobileOrStoreIDs(dao.GetDB(), mobileNum, shortRoleNameList, storeIDs)
|
storeList, err = dao.GetStoreListByMobileOrStoreIDs(dao.GetDB(), mobileNum, shortRoleNameList, storeIDs)
|
||||||
|
globals.SugarLogger.Debugf("--------storeList- :%s", utils.Format4Output(storeList, false))
|
||||||
|
|
||||||
return storeList, err
|
return storeList, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user