master
Number7 2024-08-08 13:57:09 +08:00
parent cf8df36494
commit 25cf0052f3
3 changed files with 13 additions and 3 deletions

View File

@ -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;
* @Date2024/7/29 20:59
*/
@Log4j2
@ForestScan(basePackages = "com.muyu.common.nacos.remote")
@EnableCustomConfig
@EnableMyFeignClients
@SpringBootApplication

View File

@ -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 = "根据客户的名称,编码,是否开启等可以进行客户的筛选")

View File

@ -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(