diff --git a/cloud-pay-server/src/main/java/com/muyu/cloud/pay/service/impl/OrderPayCustomerServiceImpl.java b/cloud-pay-server/src/main/java/com/muyu/cloud/pay/service/impl/OrderPayCustomerServiceImpl.java index 9978346..766c8d5 100644 --- a/cloud-pay-server/src/main/java/com/muyu/cloud/pay/service/impl/OrderPayCustomerServiceImpl.java +++ b/cloud-pay-server/src/main/java/com/muyu/cloud/pay/service/impl/OrderPayCustomerServiceImpl.java @@ -78,17 +78,15 @@ public class OrderPayCustomerServiceImpl * @return客户集合 */ @Override - public List getCustomerAllList() { + public List getCustomerAllList () { List nacosServerAllList = nacosServerService.nacosServerAllList(); LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.select(OrderPayCustomer::getAppCode); List orderPayCustomerList = this.list(queryWrapper); - Set customerSet = orderPayCustomerList.stream() - .map(OrderPayCustomer::getAppCode) - .collect(Collectors.toSet()); - + Set customerSet + = orderPayCustomerList.stream().map(OrderPayCustomer::getAppCode).collect(Collectors.toSet()); return nacosServerAllList.stream() - .filter(nacosServer->!customerSet.contains(nacosServer)) + .filter(nacosServer -> !customerSet.contains(nacosServer)) .toList(); } /**