| | |
| | | PageInfo<TechnicianSubscribeVO> pageInfo = new PageInfo(pageCurr, pageSize); |
| | | List<TechnicianSubscribeVO> technicianSubscribeByUserAndShop1 = technicianSubscribeMapper.getTechnicianSubscribeByUserAndShop1(pageInfo, shopId, status, phone, name, serviceMode); |
| | | if (StringUtils.isNotEmpty(name)){ |
| | | List<AppUser> nameIds = appUserClient.getAppUserByPhone(name).getData(); |
| | | technicianSubscribeByUserAndShop1 = technicianSubscribeByUserAndShop1.stream().filter(e -> nameIds.contains(e.getAppUserId())) |
| | | List<AppUser> nameIds = appUserClient.getAppUserByName(name).getData(); |
| | | List<Long> collect = nameIds.stream().map(AppUser::getId).collect(Collectors.toList()); |
| | | if (collect.isEmpty())collect.add(-1L); |
| | | technicianSubscribeByUserAndShop1 = technicianSubscribeByUserAndShop1.stream().filter(e -> collect.contains(e.getAppUserId())) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | if (StringUtils.isNotEmpty(phone)){ |
| | | List<AppUser> phoneIds = appUserClient.getAppUserByPhone(phone).getData(); |
| | | technicianSubscribeByUserAndShop1 = technicianSubscribeByUserAndShop1.stream().filter(e -> phoneIds.contains(e.getAppUserId())) |
| | | List<Long> collect = phoneIds.stream().map(AppUser::getId).collect(Collectors.toList()); |
| | | if (collect.isEmpty())collect.add(-1L); |
| | | technicianSubscribeByUserAndShop1 = technicianSubscribeByUserAndShop1.stream().filter(e -> collect.contains(e.getAppUserId())) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | for (TechnicianSubscribeVO technicianSubscribeVO : technicianSubscribeByUserAndShop1) { |