|
|
@ -190,12 +190,9 @@ public class GridLatestServiceImpl extends BaseServiceImpl<GridLatestDao, GridLa |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public List<CustomerUser4PointResultDTO> getCustomerUsers(CustomerUserFormDTO customerUserFormDTO) { |
|
|
|
|
|
|
|
List<String> userIds = baseDao.selectAllUserByCustomerId(customerUserFormDTO.getCustomerId()); |
|
|
|
List<CustomerUser4PointResultDTO> allData = new LinkedList<>(); |
|
|
|
if(null == userIds || userIds.isEmpty()){ |
|
|
|
return allData; |
|
|
|
} |
|
|
|
List<String> userIds = baseDao.selectAllUserByCustomerId(customerUserFormDTO.getCustomerId()); |
|
|
|
if(null == userIds) userIds = new LinkedList<>(); |
|
|
|
CommonCustomerFormDTO customerParam = new CommonCustomerFormDTO(); |
|
|
|
customerParam.setCustomerId(customerUserFormDTO.getCustomerId()); |
|
|
|
Result<List<String>> volunteer = epmetHeartOpenFeignClient.volunteerUserIds(customerParam); |
|
|
@ -203,6 +200,9 @@ public class GridLatestServiceImpl extends BaseServiceImpl<GridLatestDao, GridLa |
|
|
|
userIds.addAll(volunteer.getData()); |
|
|
|
userIds = userIds.stream().distinct().collect(Collectors.toList()); |
|
|
|
} |
|
|
|
if(null == userIds || userIds.isEmpty()){ |
|
|
|
return allData; |
|
|
|
} |
|
|
|
PageHelper.startPage(customerUserFormDTO.getPageNo(),customerUserFormDTO.getPageSize()); |
|
|
|
allData = userWechatDao.selectResiAndStrangerInfo(userIds,customerUserFormDTO.getName()); |
|
|
|
if(null == allData || allData.isEmpty()){ |
|
|
|