feat():更改父级版本号

master
chentaisen 2024-08-08 20:26:51 +08:00
parent c444a72676
commit dd49cabd37
3 changed files with 46 additions and 1 deletions

View File

@ -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>

View File

@ -20,4 +20,11 @@ public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
* @return
*/
public List<CustomerResp> selectList(CustomerListReq customerListReq);
/**
*
* @return
*/
List<String> getCustomerAllList();
}

View File

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