// 获取所有用户
users = userService.findAll();
// 根据商家ID获取相应餐厅
RestaurantCriteria rc = new RestaurantCriteria();
Criteria criteria = rc.createCriteria();
criteria.andMerchantIdEqualTo(userMerchant.getMerchantId());
restaurants = restaurantService.findByCriteria(rc);
// 对可管理餐厅处理,将可管理的餐厅标记,迭代展示时使用
List<String> ids = Arrays.asList(userMerchant.getManageRestaurantList().split(","));
for(Restaurant r : restaurants)
{