master
parent
cd19c026a1
commit
c8cc2cdb44
|
@ -1,6 +1,4 @@
|
||||||
package com.muyu.cloud.pay.controller;
|
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.CustomerAddReq;
|
||||||
import com.muyu.cloud.pay.domain.req.CustomerListReq;
|
import com.muyu.cloud.pay.domain.req.CustomerListReq;
|
||||||
import com.muyu.cloud.pay.domain.resp.CustomerListResp;
|
import com.muyu.cloud.pay.domain.resp.CustomerListResp;
|
||||||
|
@ -32,9 +30,9 @@ public class OrderPayCustomerController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private OrderPayCustomerService orderPayCustomerService;
|
private OrderPayCustomerService orderPayCustomerService;
|
||||||
|
|
||||||
public OrderPayCustomerController(){
|
/* public OrderPayCustomerController(){
|
||||||
log.info("forest{}扫描路径", ForestScannerRegister.getBasePackages());
|
log.info("forest{}扫描路径", ForestScannerRegister.getBasePackages());
|
||||||
}
|
}*/
|
||||||
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
||||||
@Operation(summary = "查看客户",description = "根据客户的名称,编码,是否开启等可以进行客户的筛选")
|
@Operation(summary = "查看客户",description = "根据客户的名称,编码,是否开启等可以进行客户的筛选")
|
||||||
public Result<List<CustomerListResp>> selectList(
|
public Result<List<CustomerListResp>> selectList(
|
||||||
|
|
|
@ -8,7 +8,6 @@ import com.muyu.cloud.pay.domain.resp.CustomerListResp;
|
||||||
import com.muyu.cloud.pay.mapper.OrderPayCustomerMapper;
|
import com.muyu.cloud.pay.mapper.OrderPayCustomerMapper;
|
||||||
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.muyu.common.core.utils.StringUtils;
|
||||||
import com.muyu.nacos.service.NacosServerService;
|
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -34,7 +33,7 @@ public class OrderPayCustomerServiceImpl
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private NacosServerService nacosServerService;
|
private OrderPayCustomerService orderPayCustomerService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -64,7 +63,7 @@ public class OrderPayCustomerServiceImpl
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<String> getCustomerAllList() {
|
public List<String> getCustomerAllList() {
|
||||||
List<String> nacosServerAllList = nacosServerService.nacosServerAllList();
|
List<String> nacosServerAllList = orderPayCustomerService.getCustomerAllList();
|
||||||
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.select(OrderPayCustomer::getAppCode);
|
queryWrapper.select(OrderPayCustomer::getAppCode);
|
||||||
List<OrderPayCustomer> orderPayCustomerList = this.list(queryWrapper);
|
List<OrderPayCustomer> orderPayCustomerList = this.list(queryWrapper);
|
||||||
|
|
Loading…
Reference in New Issue