feat():修改删除异常
parent
1ff6797a54
commit
e7301c0ad2
|
@ -90,7 +90,7 @@ public class OrderPayCustomerController {
|
||||||
* @param orderCustomerUpdReq 修改客户请求信息
|
* @param orderCustomerUpdReq 修改客户请求信息
|
||||||
* @return 修改结果
|
* @return 修改结果
|
||||||
*/
|
*/
|
||||||
@PutMapping("/{orderCustomerId}")
|
@PutMapping("/update/{orderCustomerId}")
|
||||||
@Operation(summary = "客户信息修改",description = "通过ID修改客户信息")
|
@Operation(summary = "客户信息修改",description = "通过ID修改客户信息")
|
||||||
public Result<String> update(
|
public Result<String> update(
|
||||||
@Schema(title = "客户ID",type = "Long",defaultValue = "1",description = "修改客户信息需要依据的唯一条件")
|
@Schema(title = "客户ID",type = "Long",defaultValue = "1",description = "修改客户信息需要依据的唯一条件")
|
||||||
|
@ -105,7 +105,7 @@ public class OrderPayCustomerController {
|
||||||
* @param orderCustomerId 删除客户请求信息
|
* @param orderCustomerId 删除客户请求信息
|
||||||
* @return 删除结果
|
* @return 删除结果
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("/{orderCustomerId}")
|
@DeleteMapping("/delete/{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);
|
||||||
|
@ -116,7 +116,7 @@ public class OrderPayCustomerController {
|
||||||
* @param orderCustomerId ID
|
* @param orderCustomerId ID
|
||||||
* @return 客户信息
|
* @return 客户信息
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("/{orderCustomerId}")
|
@DeleteMapping("/findById/{orderCustomerId}")
|
||||||
@Operation(summary = "通过ID获取客户信息",description = "通过ID获取客户信息")
|
@Operation(summary = "通过ID获取客户信息",description = "通过ID获取客户信息")
|
||||||
public Result<OrderPayCustomer> findById(@PathVariable("orderCustomerId") Long orderCustomerId){
|
public Result<OrderPayCustomer> findById(@PathVariable("orderCustomerId") Long orderCustomerId){
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ public class OrderPayCustomerController {
|
||||||
* @return 启用结果
|
* @return 启用结果
|
||||||
*/
|
*/
|
||||||
@GetMapping("/enable/{orderCustomerId}")
|
@GetMapping("/enable/{orderCustomerId}")
|
||||||
@Operation(summary = "通过ID启用客户",description = "通过ID启用客户信息")
|
@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,"操作成功");
|
||||||
|
|
|
@ -116,7 +116,12 @@ public class OrderPayCustomerServiceImpl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void settingStatus(Long orderCustomerId,String status){
|
public void settingStatus(Long orderCustomerId,String status){
|
||||||
|
this.updateById(
|
||||||
|
OrderPayCustomer.builder()
|
||||||
|
.id(orderCustomerId)
|
||||||
|
.status(status)
|
||||||
|
.build()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue