| | |
| | | shopAppointableTimeService.updateById(shopAppointableTime); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getMyShopList", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取当前账户可切换的门店列表【2.0】") |
| | | public R<List<Shop>> getMyShopList() { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<ShopRelUser> shopRelUser = shopRelUserService.getByUserId(userId); |
| | | List<Shop> collect = shopRelUser.stream().map(e -> { |
| | | Shop shop = shopService.getById(e.getShopId()); |
| | | return shop; |
| | | }).collect(Collectors.toList()); |
| | | return R.ok(collect); |
| | | } |
| | | |
| | | |
| | | } |