feat():添加禁用和启用接口
parent
cd341b1a01
commit
4e6cbfb409
|
@ -26,20 +26,20 @@ public class CustomerOrderPaySimpleResp {
|
|||
/**
|
||||
* 客户单号
|
||||
*/
|
||||
@Schema(name = "客户单号",type = "String",defaultValue = "OIEJSO798DOE79DIL",description = "客户传入的支付单信息")
|
||||
@Schema(title = "客户单号",type = "String",defaultValue = "OIEJSO798DOE79DIL",description = "客户传入的支付单信息")
|
||||
private String cusOrderNumber;
|
||||
|
||||
/**
|
||||
* 支付金额
|
||||
*/
|
||||
@Schema(name = "支付金额",type = "BigDecimal",defaultValue = "36.56",description = "客户传入的支付金额")
|
||||
@Schema(title = "支付金额",type = "BigDecimal",defaultValue = "36.56",description = "客户传入的支付金额")
|
||||
private BigDecimal price;
|
||||
|
||||
|
||||
/**
|
||||
* 渠道商类型
|
||||
*/
|
||||
@Schema(name = "支付渠道商",type = "String",defaultValue = "支付宝",description = "用户支付的时候选择的渠道商")
|
||||
@Schema(title = "支付渠道商",type = "String",defaultValue = "支付宝",description = "用户支付的时候选择的渠道商")
|
||||
private String channelTypeName;
|
||||
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ orderPayCustomerService.save(OrderPayCustomer.addBuild(orderCustomerAddReq));
|
|||
|
||||
|
||||
/**
|
||||
* 修盖客户
|
||||
* 修改客户
|
||||
* @param orderCustomerId 修改客户请求信息
|
||||
* @param orderCustomerUpdReq
|
||||
* @return 修改结果
|
||||
|
|
|
@ -51,8 +51,6 @@ public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
|
|||
* @param orderCustomerId ID
|
||||
* @param status 状态 SysIsYesNo
|
||||
*/
|
||||
|
||||
|
||||
void settingStatus(Long orderCustomerId,String status);
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.cloud.pay.service.impl;
|
|||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
import com.muyu.cloud.pay.domain.OrderPayInfo;
|
||||
|
@ -93,21 +94,20 @@ public class OrderPayCustomerServiceImpl extends ServiceImpl<OrderPayCustomerMap
|
|||
.toList();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override //禁用客户
|
||||
public void disable(Long orderCustomerId) {
|
||||
this.settingStatus(orderCustomerId, SystemYesNo.NO.getCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override //启用客户
|
||||
public void enable(Long orderCustomerId) {
|
||||
this.settingStatus(orderCustomerId, SystemYesNo.NO.getCode());
|
||||
this.settingStatus(orderCustomerId, SystemYesNo.YES.getCode());
|
||||
}
|
||||
|
||||
public void settingStatus(Long orderCustomerId,String status){
|
||||
|
||||
|
||||
|
||||
|
||||
UpdateWrapper<OrderPayCustomer> updateWrapper = new UpdateWrapper<>();
|
||||
updateWrapper.eq("id",orderCustomerId).set("status",status);
|
||||
this.update(updateWrapper);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue