feat():增加了OrderCustomerAddReq
parent
6de2fd57e3
commit
94b9339a8d
|
@ -3,6 +3,7 @@ package com.bwie.cloud.pay.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.bwie.cloud.pay.domain.req.OrderCustomerAddReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.*;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
@ -38,12 +39,28 @@ public class OrderPayCustomer extends BaseEntity {
|
|||
*/
|
||||
private String appCode;
|
||||
|
||||
/**
|
||||
* 服务/客户描述
|
||||
*/
|
||||
private String appDesc;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
|
||||
public static OrderPayCustomer addBuild(OrderCustomerAddReq req){
|
||||
return OrderPayCustomer.builder()
|
||||
.appName(req.getAppName())
|
||||
.appCode(req.getAppCode())
|
||||
.appDesc(req.getAppDesc())
|
||||
.status(req.getStatus())
|
||||
.remark(req.getRemark())
|
||||
.build();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
package com.bwie.cloud.pay.domain.req;
|
||||
|
||||
import com.muyu.common.core.validation.custom.IsSystemYseNo;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.core.OrderComparator;
|
||||
|
||||
/**
|
||||
* @Author:zhangzhihao
|
||||
* @name:OrderCustomerAddReq
|
||||
* @Date:2024/8/5 20:04
|
||||
* 不准抄代码,添加注释,清楚每一行代码意思
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "支付服务客户添加请求对象,",description = "根据入参进行客户服务的添加")
|
||||
public class OrderCustomerAddReq {
|
||||
|
||||
/**
|
||||
* 服务/客户名称
|
||||
*/
|
||||
@NotEmpty(message = "服务客户名称不可为空")
|
||||
private String appName;
|
||||
|
||||
|
||||
/**
|
||||
* 服务/客户编码
|
||||
*/
|
||||
@NotBlank(message = "服务客户编码不可为空")
|
||||
private String appCode;
|
||||
|
||||
/**
|
||||
* 服务/客户描述
|
||||
*/
|
||||
private String appDesc;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@NotBlank(message = "客户状态不可为空")
|
||||
@IsSystemYseNo
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 客户备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -11,7 +11,6 @@ import com.bwie.cloud.pay.mapper.OrderPayCustomerMapper;
|
|||
import com.bwie.cloud.pay.service.OrderPayCustomerService;
|
||||
import com.bwie.cloud.pay.service.OrderPayService;
|
||||
import com.bwie.nacos.remote.service.NacosServeService;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
Loading…
Reference in New Issue