feat():更改父级版本号
parent
c444a72676
commit
dd49cabd37
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-pay</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>cloud-pay-server</artifactId>
|
||||
|
@ -91,6 +91,12 @@
|
|||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-pay-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-nacos-remote</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -20,4 +20,11 @@ public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
|
|||
* @return客户集合
|
||||
*/
|
||||
public List<CustomerResp> selectList(CustomerListReq customerListReq);
|
||||
|
||||
/**
|
||||
* 获取所有的客户
|
||||
* @return 客户集合
|
||||
*/
|
||||
List<String> getCustomerAllList();
|
||||
|
||||
}
|
||||
|
|
|
@ -12,13 +12,16 @@ import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
|||
import com.muyu.cloud.pay.service.OrderPayService;
|
||||
import com.muyu.common.core.enums.SysPayType;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.nacos.service.NacosServerService;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @ClassName OrderPayCustomerServiceImpl
|
||||
|
@ -34,6 +37,15 @@ public class OrderPayCustomerServiceImpl
|
|||
@Resource(type = OrderPayServiceImpl.class)
|
||||
private OrderPayService orderPayService;
|
||||
|
||||
@Resource
|
||||
private NacosServerService nacosServerService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询客户集合
|
||||
* @param customerListReq
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CustomerResp> selectList(CustomerListReq customerListReq) {
|
||||
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
@ -58,4 +70,24 @@ public class OrderPayCustomerServiceImpl
|
|||
.toList()))
|
||||
.toList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有的客户
|
||||
* @return客户集合
|
||||
*/
|
||||
@Override
|
||||
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());
|
||||
|
||||
return nacosServerAllList.stream()
|
||||
.filter(nacosServer->!customerSet.contains(nacosServer))
|
||||
.toList();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue