| | |
| | | .ifPresent(superiors -> { |
| | | user.setTeacher(superiors.getName()); |
| | | }); |
| | | //当前绑定门店的店铺信息(服务商) |
| | | for (AppUser allSuperior : allSuperiors) { |
| | | List<Shop> shopList = shopClient.getShopByUserId(allSuperior.getId()).getData(); |
| | | if (!CollectionUtils.isEmpty(shopList)){ |
| | | user.setShopName(shopList.get(0).getName()); |
| | | break; |
| | | } |
| | | |
| | | Shop shop1 = shopClient.getServiceProvider(userId).getData(); |
| | | if(null != shop1){ |
| | | user.setShopName(shop1.getName()); |
| | | user.setShopId(shop1.getId()); |
| | | } |
| | | // if (user.getShopId() != null) { |
| | | // R<Shop> storeById = shopClient.getShopById(user.getShopId()); |
| | | // if (storeById.getData() != null) { |
| | | // Shop shop = storeById.getData(); |
| | | // user.setShopName(shop.getName()); |
| | | // } |
| | | // } |
| | | |
| | | ArrayList<Long> userIds = new ArrayList<>(); |
| | | userIds.add(userId); |
| | | // 获取当前用户的所有下级 |
| | |
| | | Long userid = tokenService.getLoginUser().getUserid(); |
| | | SysUser sysUser = sysUserClient.getSysUser(userid).getData(); |
| | | AppUser byId = appUserService.getById(id); |
| | | if (byId.getShopId() != null) { |
| | | R<Shop> shopById = shopClient.getShopById(Integer.parseInt(String.valueOf(byId.getShopId()))); |
| | | if (shopById.getData() != null) { |
| | | byId.setShopName(shopById.getData().getName()); |
| | | } |
| | | Shop shop1 = shopClient.getServiceProvider(id).getData(); |
| | | if(null != shop1){ |
| | | byId.setShopName(shop1.getName()); |
| | | } |
| | | R<List<Shop>> shopByUserId = shopClient.getShopByUserId(id); |
| | | if (shopByUserId.getData() != null) { |