feat():新增列表查询
parent
9cb17eb3f0
commit
a48c68db23
|
@ -1,7 +1,9 @@
|
||||||
package com.muyu.cloud.pay;
|
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.EnableCustomConfig;
|
||||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@ -12,6 +14,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
* @name:MuYuPayApplication
|
* @name:MuYuPayApplication
|
||||||
* @Date:2024/7/29 17:08
|
* @Date:2024/7/29 17:08
|
||||||
*/
|
*/
|
||||||
|
@Log4j2
|
||||||
|
@ForestScan(basePackages = "com.muyu.common.remote")
|
||||||
@EnableCustomConfig
|
@EnableCustomConfig
|
||||||
@EnableMyFeignClients
|
@EnableMyFeignClients
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
package com.muyu.cloud.pay;
|
||||||
|
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
import org.springframework.boot.ConfigurableBootstrapContext;
|
||||||
|
import org.springframework.boot.SpringApplicationRunListener;
|
||||||
|
import org.springframework.context.ConfigurableApplicationContext;
|
||||||
|
import org.springframework.core.env.ConfigurableEnvironment;
|
||||||
|
|
||||||
|
import java.time.Duration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:zhangchengzhi
|
||||||
|
* @Package:com.muyu.cloud.pay
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:MySpringApplicationRunlistener
|
||||||
|
* @Date:2024/8/5 19:57
|
||||||
|
*/
|
||||||
|
@Log4j2
|
||||||
|
public class MySpringApplicationRunlistener implements SpringApplicationRunListener {
|
||||||
|
|
||||||
|
|
||||||
|
public MySpringApplicationRunlistener() {
|
||||||
|
log.info("MySpringApplicationRunlistener");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void starting(ConfigurableBootstrapContext bootstrapContext) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void environmentPrepared(ConfigurableBootstrapContext bootstrapContext, ConfigurableEnvironment environment) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void contextPrepared(ConfigurableApplicationContext context) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void contextLoaded(ConfigurableApplicationContext context) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void started(ConfigurableApplicationContext context, Duration timeTaken) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ready(ConfigurableApplicationContext context, Duration timeTaken) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void failed(ConfigurableApplicationContext context, Throwable exception) {
|
||||||
|
log.info("执行:{}","starting");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
package com.muyu.cloud.pay.controller;
|
package com.muyu.cloud.pay.controller;
|
||||||
|
|
||||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
|
||||||
import com.muyu.cloud.pay.domain.req.CustomerListReq;
|
import com.muyu.cloud.pay.domain.req.CustomerListReq;
|
||||||
import com.muyu.cloud.pay.domain.resp.CustomerResp;
|
import com.muyu.cloud.pay.domain.resp.CustomerResp;
|
||||||
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
||||||
|
@ -36,6 +35,7 @@ public class OrderPayCustomerController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有的客户
|
* 查询所有的客户
|
||||||
|
*
|
||||||
* @param customerListReq 客户列表请求参数
|
* @param customerListReq 客户列表请求参数
|
||||||
* @return 客户列表
|
* @return 客户列表
|
||||||
*/
|
*/
|
||||||
|
@ -44,10 +44,13 @@ public class OrderPayCustomerController {
|
||||||
public Result<List<CustomerResp>> selectList(@Validated @RequestBody CustomerListReq customerListReq) {
|
public Result<List<CustomerResp>> selectList(@Validated @RequestBody CustomerListReq customerListReq) {
|
||||||
|
|
||||||
return Result.success(orderPayCustomerService.selectList(customerListReq));
|
return Result.success(orderPayCustomerService.selectList(customerListReq));
|
||||||
};
|
}
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有客户的
|
* 获取所有客户的
|
||||||
|
*
|
||||||
* @return 客户集合
|
* @return 客户集合
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -60,16 +63,6 @@ public class OrderPayCustomerController {
|
||||||
return Result.success(
|
return Result.success(
|
||||||
orderPayCustomerService.getCustomerAllList()
|
orderPayCustomerService.getCustomerAllList()
|
||||||
);//客户业务层
|
);//客户业务层
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue