Commit 36b90a1e by zhouhaibao

[+]订阅问题处理,新增群名过滤

1 parent 223b91e5
......@@ -38,6 +38,7 @@ public class CustomerGroupCodeRemoteImpl implements CustomerGroupCodeRemote {
if (request.getChatId() != null) {
internalRequest.setChatIdList(Collections.singletonList(request.getChatId()));
}
internalRequest.setChatName(request.getChatName());
List<CustomerGroupInfoResponse> result = customerGroupCodeService.queryBusinessGroups(internalRequest);
String chatName = internalRequest.getChatName();
......
......@@ -63,6 +63,11 @@ public class UsedCarCustomerGroupCodeStrategy implements CustomerGroupCodeStrate
List<CustomerBaseInfoResponse> simpleCustomerBaseList = customerBaseService.getSimpleCustomerBaseList(
simpleRequest);
if (CollectionUtils.isNotEmpty(simpleCustomerBaseList)){
if (request.getChatName()!=null){
simpleCustomerBaseList = simpleCustomerBaseList.stream()
.filter(customerBase -> customerBase.getGroupName().contains(request.getChatName()))
.collect(Collectors.toList());
}
return simpleCustomerBaseList.stream()
.map(customerBase -> {
CustomerGroupInfoResponse response = new CustomerGroupInfoResponse();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!