fix():将NscosServerService重新注入
parent
6ee23a97dc
commit
f3977c51bb
|
@ -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<String> getCustomerAllList() {
|
||||
/**
|
||||
* 获取所有的客户
|
||||
*
|
||||
* @return 客户集合
|
||||
*/
|
||||
|
||||
List<String> nacosServerAllList = nacosServiceService.nacosServerAllList();
|
||||
@Override
|
||||
public List<String> getCustomerAllList() {
|
||||
|
||||
List<String> nacosServerAllList = nacosServerService.nacosServerAllList();
|
||||
|
||||
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
@ -101,21 +111,3 @@ public class OrderPayCustomerServiceImpl
|
|||
|
||||
|
||||
|
||||
//List<CustomerOrderPaySimpleResp> 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()
|
||||
// );
|
||||
//
|
||||
// }
|
||||
|
||||
|
|
Loading…
Reference in New Issue