master
张腾 2024-08-09 21:40:37 +08:00
parent cd19c026a1
commit c8cc2cdb44
2 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,4 @@
package com.muyu.cloud.pay.controller;
import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
import com.muyu.cloud.pay.domain.req.CustomerAddReq;
import com.muyu.cloud.pay.domain.req.CustomerListReq;
import com.muyu.cloud.pay.domain.resp.CustomerListResp;
@ -32,9 +30,9 @@ public class OrderPayCustomerController {
@Autowired
private OrderPayCustomerService orderPayCustomerService;
public OrderPayCustomerController(){
/* public OrderPayCustomerController(){
log.info("forest{}扫描路径", ForestScannerRegister.getBasePackages());
}
}*/
@RequestMapping(path = "/list",method = RequestMethod.POST)
@Operation(summary = "查看客户",description = "根据客户的名称,编码,是否开启等可以进行客户的筛选")
public Result<List<CustomerListResp>> selectList(

View File

@ -8,7 +8,6 @@ import com.muyu.cloud.pay.domain.resp.CustomerListResp;
import com.muyu.cloud.pay.mapper.OrderPayCustomerMapper;
import com.muyu.cloud.pay.service.OrderPayCustomerService;
import com.muyu.common.core.utils.StringUtils;
import com.muyu.nacos.service.NacosServerService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -34,7 +33,7 @@ public class OrderPayCustomerServiceImpl
@Autowired
private NacosServerService nacosServerService;
private OrderPayCustomerService orderPayCustomerService;
@Override
@ -64,7 +63,7 @@ public class OrderPayCustomerServiceImpl
*/
@Override
public List<String> getCustomerAllList() {
List<String> nacosServerAllList = nacosServerService.nacosServerAllList();
List<String> nacosServerAllList = orderPayCustomerService.getCustomerAllList();
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.select(OrderPayCustomer::getAppCode);
List<OrderPayCustomer> orderPayCustomerList = this.list(queryWrapper);