master
parent
cf8df36494
commit
25cf0052f3
|
@ -1,5 +1,6 @@
|
|||
package com.muyu.cloud.pay;
|
||||
|
||||
import com.dtflys.forest.springboot.annotation.ForestScan;
|
||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
|
@ -15,6 +16,7 @@ import org.springframework.context.ConfigurableApplicationContext;
|
|||
* @Date:2024/7/29 20:59
|
||||
*/
|
||||
@Log4j2
|
||||
@ForestScan(basePackages = "com.muyu.common.nacos.remote")
|
||||
@EnableCustomConfig
|
||||
@EnableMyFeignClients
|
||||
@SpringBootApplication
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.cloud.pay.controller;
|
||||
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
|
||||
import com.muyu.cloud.pay.domain.req.CustomerListReq;
|
||||
import com.muyu.cloud.pay.domain.resp.CustomerResp;
|
||||
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
||||
|
@ -28,7 +28,13 @@ import java.util.List;
|
|||
@RequestMapping("/customer")
|
||||
@RequiredArgsConstructor //只有参数为空或者是not null才会生成
|
||||
@Tag(name = "客户控制层",description = "进行客户管理,查看等相关操作")
|
||||
public class OrderPayCustomerServiceController {
|
||||
public class OrderPayCustomerController {
|
||||
|
||||
public OrderPayCustomerController(OrderPayCustomerService orderPayCustomerService){
|
||||
|
||||
log.info("forest扫描路径:{}", ForestScannerRegister.getBasePackages());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户业务层
|
||||
|
@ -40,7 +46,7 @@ public class OrderPayCustomerServiceController {
|
|||
/**
|
||||
* 查询所有的客户
|
||||
* @param customerListReq 客户列表请求参数
|
||||
* @return 客户列表1
|
||||
* @return 客户列表
|
||||
*/
|
||||
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
||||
@Operation(summary = "查看客户",description = "根据客户的名称,编码,是否开启等可以进行客户的筛选")
|
|
@ -1,6 +1,7 @@
|
|||
package com.muyu.cloud.pay.service.impl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.dtflys.forest.Forest;
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
import com.muyu.cloud.pay.domain.OrderPayInfo;
|
||||
import com.muyu.cloud.pay.domain.req.CustomerListReq;
|
||||
|
@ -56,6 +57,7 @@ public class OrderPayCustomerServiceImpl
|
|||
@Override
|
||||
public List<CustomerResp> selectList(CustomerListReq customerListReq) {
|
||||
|
||||
|
||||
LambdaQueryWrapper<OrderPayCustomer> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
queryWrapper.like(
|
||||
|
|
Loading…
Reference in New Issue