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 3be912b..20f7045 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 @@ -11,9 +11,11 @@ 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.nacos.remote.NacosServiceRemote; -import com.muyu.common.nacos.service.NacosServiceService; + +import com.muyu.common.nacos.service.NacosServerService; import lombok.extern.log4j.Log4j2; import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -41,7 +43,9 @@ public class OrderPayCustomerServiceImpl @Resource - private NacosServiceService nacosServiceService; + private NacosServerService nacosServerService; + + /** @@ -80,10 +84,16 @@ public class OrderPayCustomerServiceImpl } - @Override - public List getCustomerAllList() { + /** + * 获取所有的客户 + * + * @return 客户集合 + */ - List nacosServerAllList = nacosServiceService.nacosServerAllList(); + @Override + public List getCustomerAllList() { + + List nacosServerAllList = nacosServerService.nacosServerAllList(); LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); @@ -101,21 +111,3 @@ public class OrderPayCustomerServiceImpl -//List customerOrderPaySimpleRespList=new ArrayList<>(); -// for (OrderPayInfo orderPayInfo : orderPayInfoList) { -// -//CustomerOrderPaySimpleResp customerOrderPaySimpleResp = new CustomerOrderPaySimpleResp(); -// customerOrderPaySimpleResp.setCusOrderNumber(orderPayInfo.getCusOrderNumber()); -// customerOrderPaySimpleResp.setPrice(orderPayInfo.getPrice()); -// customerOrderPaySimpleResp.setChannelTypeName(SysPayType.getInfoByCode(orderPayInfo.getChannelType())); -// customerOrderPaySimpleRespList.add(customerOrderPaySimpleResp); -// -// -// customerResp.setOrderPaySimpleRespList( -// orderPayCustomerList.stream() -// .map(OrderPayInfo::buildCustomerOrderPaySimpleResp) -// .toList() -// ); -// -// } -