feat():增删改查

master
chentaisen 2024-08-09 20:20:45 +08:00
parent 02ad79db1f
commit 879d4949a9
1 changed files with 4 additions and 6 deletions

View File

@ -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();
}
/**