feat():修改删除异常

master
Yueng 2024-08-11 09:08:38 +08:00
parent 1ff6797a54
commit e7301c0ad2
2 changed files with 10 additions and 5 deletions

View File

@ -90,7 +90,7 @@ public class OrderPayCustomerController {
* @param orderCustomerUpdReq
* @return
*/
@PutMapping("/{orderCustomerId}")
@PutMapping("/update/{orderCustomerId}")
@Operation(summary = "客户信息修改",description = "通过ID修改客户信息")
public Result<String> update(
@Schema(title = "客户ID",type = "Long",defaultValue = "1",description = "修改客户信息需要依据的唯一条件")
@ -105,7 +105,7 @@ public class OrderPayCustomerController {
* @param orderCustomerId
* @return
*/
@DeleteMapping("/{orderCustomerId}")
@DeleteMapping("/delete/{orderCustomerId}")
@Operation(summary = "客户信息删除",description = "通过ID删除客户信息")
public Result<String> delete(@PathVariable("orderCustomerId") Long orderCustomerId){
orderPayCustomerService.removeById(orderCustomerId);
@ -116,7 +116,7 @@ public class OrderPayCustomerController {
* @param orderCustomerId ID
* @return
*/
@DeleteMapping("/{orderCustomerId}")
@DeleteMapping("/findById/{orderCustomerId}")
@Operation(summary = "通过ID获取客户信息",description = "通过ID获取客户信息")
public Result<OrderPayCustomer> findById(@PathVariable("orderCustomerId") Long orderCustomerId){
@ -141,7 +141,7 @@ public class OrderPayCustomerController {
* @return
*/
@GetMapping("/enable/{orderCustomerId}")
@Operation(summary = "通过ID启用客户",description = "通过ID启用客户信息")
@Operation(summary = "通过ID启用客户",description = "通过ID启用客户信息,启用之后启用可以对接口的相关调用")
public Result<String> enable(@PathVariable ("orderCustomerId") Long orderCustomerId){
this.orderPayCustomerService.enable(orderCustomerId);
return Result.success(null,"操作成功");

View File

@ -116,7 +116,12 @@ public class OrderPayCustomerServiceImpl
@Override
public void settingStatus(Long orderCustomerId,String status){
this.updateById(
OrderPayCustomer.builder()
.id(orderCustomerId)
.status(status)
.build()
);
}
@Override