feat():修复接口相关逻辑

master
WeiRan 2024-08-09 18:24:11 +08:00
parent 099dc126f9
commit f17a2324ce
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class OrderPayCustomerController {
* @return * @return
*/ */
@DeleteMapping("/{orderCustomerId}") @DeleteMapping("/{orderCustomerId}")
@Operation(summary = "客户信息删除",description = "通过Id删除客户信息") @Operation(summary = "客户信息删除",description = "通过Id删除客户信息,七天内存在支付相关记录的客户,不可进行删除")
public Result<String> delete(@PathVariable("orderCustomerId") Long orderCustomerId){ public Result<String> delete(@PathVariable("orderCustomerId") Long orderCustomerId){
orderPayCustomerService.removeById(orderCustomerId); orderPayCustomerService.removeById(orderCustomerId);
return Result.success(null,"操作成功"); return Result.success(null,"操作成功");
@ -129,6 +129,8 @@ public class OrderPayCustomerController {
* @param orderCustomerId * @param orderCustomerId
* @return * @return
*/ */
@GetMapping("/disable/{orderCustomerId}")
@Operation(summary = "通过Id禁用客户",description = "通过Id禁用客户禁用之后禁止调用支付相关接口")
public Result<String> disable(@PathVariable("orderCustomerId") Long orderCustomerId){ public Result<String> disable(@PathVariable("orderCustomerId") Long orderCustomerId){
this.orderPayCustomerService.disable(orderCustomerId); this.orderPayCustomerService.disable(orderCustomerId);
return Result.success(null,"操作成功"); return Result.success(null,"操作成功");
@ -140,6 +142,8 @@ public class OrderPayCustomerController {
* @param orderCustomerId * @param orderCustomerId
* @return * @return
*/ */
@GetMapping("/enable/{orderCustomerId}")
@Operation(summary = "通过Id启用客户息",description = "通过Id启用客户启用之后可以进行支付相关接口的调用")
public Result<String> enable(@PathVariable("orderCustomerId") Long orderCustomerId){ public Result<String> enable(@PathVariable("orderCustomerId") Long orderCustomerId){
this.orderPayCustomerService.enable(orderCustomerId); this.orderPayCustomerService.enable(orderCustomerId);
return Result.success(null,"操作成功"); return Result.success(null,"操作成功");