feat():增删改查
parent
02ad79db1f
commit
879d4949a9
|
@ -78,17 +78,15 @@ public class OrderPayCustomerServiceImpl
|
|||
* @return客户集合
|
||||
*/
|
||||
@Override
|
||||
public List<String> getCustomerAllList() {
|
||||
public List<String> getCustomerAllList () {
|
||||
List<String> nacosServerAllList = nacosServerService.nacosServerAllList();
|
||||
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.select(OrderPayCustomer::getAppCode);
|
||||
List<OrderPayCustomer> orderPayCustomerList = this.list(queryWrapper);
|
||||
Set<String> customerSet = orderPayCustomerList.stream()
|
||||
.map(OrderPayCustomer::getAppCode)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
Set<String> customerSet
|
||||
= orderPayCustomerList.stream().map(OrderPayCustomer::getAppCode).collect(Collectors.toSet());
|
||||
return nacosServerAllList.stream()
|
||||
.filter(nacosServer->!customerSet.contains(nacosServer))
|
||||
.filter(nacosServer -> !customerSet.contains(nacosServer))
|
||||
.toList();
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue