Commit 36b90a1e by zhouhaibao

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

1 parent 223b91e5
...@@ -38,6 +38,7 @@ public class CustomerGroupCodeRemoteImpl implements CustomerGroupCodeRemote { ...@@ -38,6 +38,7 @@ public class CustomerGroupCodeRemoteImpl implements CustomerGroupCodeRemote {
if (request.getChatId() != null) { if (request.getChatId() != null) {
internalRequest.setChatIdList(Collections.singletonList(request.getChatId())); internalRequest.setChatIdList(Collections.singletonList(request.getChatId()));
} }
internalRequest.setChatName(request.getChatName());
List<CustomerGroupInfoResponse> result = customerGroupCodeService.queryBusinessGroups(internalRequest); List<CustomerGroupInfoResponse> result = customerGroupCodeService.queryBusinessGroups(internalRequest);
String chatName = internalRequest.getChatName(); String chatName = internalRequest.getChatName();
......
...@@ -63,6 +63,11 @@ public class UsedCarCustomerGroupCodeStrategy implements CustomerGroupCodeStrate ...@@ -63,6 +63,11 @@ public class UsedCarCustomerGroupCodeStrategy implements CustomerGroupCodeStrate
List<CustomerBaseInfoResponse> simpleCustomerBaseList = customerBaseService.getSimpleCustomerBaseList( List<CustomerBaseInfoResponse> simpleCustomerBaseList = customerBaseService.getSimpleCustomerBaseList(
simpleRequest); simpleRequest);
if (CollectionUtils.isNotEmpty(simpleCustomerBaseList)){ if (CollectionUtils.isNotEmpty(simpleCustomerBaseList)){
if (request.getChatName()!=null){
simpleCustomerBaseList = simpleCustomerBaseList.stream()
.filter(customerBase -> customerBase.getGroupName().contains(request.getChatName()))
.collect(Collectors.toList());
}
return simpleCustomerBaseList.stream() return simpleCustomerBaseList.stream()
.map(customerBase -> { .map(customerBase -> {
CustomerGroupInfoResponse response = new CustomerGroupInfoResponse(); 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!