feat():增删改查
parent
f5246e2f24
commit
1138a90291
|
@ -126,4 +126,24 @@ public class OrderPayCustomerController {
|
|||
public Result<OrderPayCustomer> findById(@PathVariable("orderCustomerId") Long orderCustomerId) {
|
||||
return Result.success(orderPayCustomerService.getById(orderCustomerId), "操作成功");
|
||||
}
|
||||
/**
|
||||
* 通过ID禁用客户
|
||||
*
|
||||
* @param orderCustomerId ID
|
||||
* @return 客户信息
|
||||
*/
|
||||
public Result<String> disable(@PathVariable("orderCustomerId") Long orderCustomerId) {
|
||||
this.orderPayCustomerService.disable(orderCustomerId);
|
||||
return Result.success(null, "操作成功");
|
||||
}
|
||||
/**
|
||||
* 通过ID启用客户
|
||||
*
|
||||
* @param orderCustomerId ID
|
||||
* @return 客户信息
|
||||
*/
|
||||
public Result<String> enable(@PathVariable("orderCustomerId") Long orderCustomerId) {
|
||||
this.orderPayCustomerService.enable(orderCustomerId);
|
||||
return Result.success(null, "操作成功");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ import java.util.List;
|
|||
public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
|
||||
/**
|
||||
* 查询客户集合
|
||||
*
|
||||
* @param customerListReq
|
||||
* @return客户集合
|
||||
*/
|
||||
|
@ -23,8 +24,29 @@ public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
|
|||
|
||||
/**
|
||||
* 获取所有的客户
|
||||
*
|
||||
* @return 客户集合
|
||||
*/
|
||||
List<String> getCustomerAllList();
|
||||
|
||||
/**
|
||||
* 禁用客户
|
||||
*
|
||||
* @param orderCustomerId 客户ID
|
||||
*/
|
||||
void disable(Long orderCustomerId);
|
||||
|
||||
/**
|
||||
* 启用用户
|
||||
*
|
||||
* @param orderCustomerId 客户Id
|
||||
*/
|
||||
void enable(Long orderCustomerId);
|
||||
|
||||
/**
|
||||
* 通过客户ID设置客户状态
|
||||
* @param orderCustomerId id
|
||||
* @param status 状态 SysIsYesNo
|
||||
*/
|
||||
void settingStatus(Long orderCustomerId, String status);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue