结算记录
This commit is contained in:
@ -0,0 +1,80 @@
|
||||
package com.greenorange.promotion.model.dto.promoCodeApply;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 推广码申请记录添加请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "推广码申请记录添加请求体", requiredProperties = {
|
||||
"salespersonName",
|
||||
"salespersonPhone",
|
||||
"promoCodeInfoKey",
|
||||
"promoCodeLink",
|
||||
"projectName",
|
||||
"projectImage",
|
||||
"userId",
|
||||
})
|
||||
public class PromoCodeApplyAddRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 业务员姓名
|
||||
*/
|
||||
@NotBlank(message = "业务员姓名不能为空")
|
||||
@Schema(description = "业务员姓名", example = "chenxinzhi")
|
||||
private String salespersonName;
|
||||
|
||||
/**
|
||||
* 业务员手机号
|
||||
*/
|
||||
@NotBlank(message = "业务员手机号不能为空")
|
||||
@Schema(description = "业务员手机号", example = "15888610253")
|
||||
private String salespersonPhone;
|
||||
|
||||
/**
|
||||
* 绑定的推广码信息key
|
||||
*/
|
||||
@NotBlank(message = "绑定的推广码信息key不能为空")
|
||||
@Schema(description = "绑定的推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 绑定的推广码链接
|
||||
*/
|
||||
@NotBlank(message = "绑定的推广码链接不能为空")
|
||||
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 绑定的项目名称
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目名称不能为空")
|
||||
@Schema(description = "绑定的项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目图片URL不能为空")
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,80 @@
|
||||
package com.greenorange.promotion.model.dto.promoCodeApply;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import com.greenorange.promotion.common.PageRequest;
|
||||
|
||||
/**
|
||||
* 推广码申请记录查询请求体,继承自分页请求 PageRequest
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "推广码申请记录查询请求体", requiredProperties = {"current", "pageSize"})
|
||||
public class PromoCodeApplyQueryRequest extends PageRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 推广码申请ID
|
||||
*/
|
||||
@Min(value = 1L, message = "推广码申请ID ID不能小于1")
|
||||
@Schema(description = "推广码申请ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 业务员姓名
|
||||
*/
|
||||
@NotBlank(message = "业务员姓名不能为空")
|
||||
@Schema(description = "业务员姓名", example = "chenxinzhi")
|
||||
private String salespersonName;
|
||||
|
||||
/**
|
||||
* 业务员手机号
|
||||
*/
|
||||
@NotBlank(message = "业务员手机号不能为空")
|
||||
@Schema(description = "业务员手机号", example = "15888610253")
|
||||
private String salespersonPhone;
|
||||
|
||||
/**
|
||||
* 绑定的推广码信息key
|
||||
*/
|
||||
@NotBlank(message = "绑定的推广码信息key不能为空")
|
||||
@Schema(description = "绑定的推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 绑定的推广码链接
|
||||
*/
|
||||
@NotBlank(message = "绑定的推广码链接不能为空")
|
||||
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 绑定的项目名称
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目名称不能为空")
|
||||
@Schema(description = "绑定的项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目图片URL不能为空")
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,87 @@
|
||||
package com.greenorange.promotion.model.dto.promoCodeApply;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 推广码申请记录更新请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "推广码申请记录更新请求体", requiredProperties = {
|
||||
"id",
|
||||
"salespersonName",
|
||||
"salespersonPhone",
|
||||
"promoCodeInfoKey",
|
||||
"promoCodeLink",
|
||||
"projectName",
|
||||
"projectImage",
|
||||
"userId",
|
||||
})
|
||||
public class PromoCodeApplyUpdateRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 推广码申请ID
|
||||
*/
|
||||
@Min(value = 1L, message = "推广码申请ID ID不能小于1")
|
||||
@Schema(description = "推广码申请ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 业务员姓名
|
||||
*/
|
||||
@NotBlank(message = "业务员姓名不能为空")
|
||||
@Schema(description = "业务员姓名", example = "chenxinzhi")
|
||||
private String salespersonName;
|
||||
|
||||
/**
|
||||
* 业务员手机号
|
||||
*/
|
||||
@NotBlank(message = "业务员手机号不能为空")
|
||||
@Schema(description = "业务员手机号", example = "15888610253")
|
||||
private String salespersonPhone;
|
||||
|
||||
/**
|
||||
* 绑定的推广码信息key
|
||||
*/
|
||||
@NotBlank(message = "绑定的推广码信息key不能为空")
|
||||
@Schema(description = "绑定的推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 绑定的推广码链接
|
||||
*/
|
||||
@NotBlank(message = "绑定的推广码链接不能为空")
|
||||
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 绑定的项目名称
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目名称不能为空")
|
||||
@Schema(description = "绑定的项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目图片URL不能为空")
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.greenorange.promotion.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 推广码申请记录表
|
||||
* @TableName promo_code_apply
|
||||
*/
|
||||
@TableName(value ="promo_code_apply")
|
||||
@Data
|
||||
public class PromoCodeApply implements Serializable {
|
||||
/**
|
||||
* 推广码申请ID
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 业务员姓名
|
||||
*/
|
||||
private String salespersonName;
|
||||
|
||||
/**
|
||||
* 业务员手机号
|
||||
*/
|
||||
private String salespersonPhone;
|
||||
|
||||
/**
|
||||
* 绑定的推广码信息key
|
||||
*/
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 绑定的推广码链接
|
||||
*/
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 绑定的项目名称
|
||||
*/
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDelete;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.greenorange.promotion.model.vo.promoCodeApply;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 推广码申请记录 视图对象
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "推广码申请记录 视图对象")
|
||||
public class PromoCodeApplyVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 推广码申请记录ID
|
||||
*/
|
||||
@Schema(description = "推广码申请记录ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 业务员姓名
|
||||
*/
|
||||
@Schema(description = "业务员姓名", example = "chenxinzhi")
|
||||
private String salespersonName;
|
||||
|
||||
/**
|
||||
* 业务员手机号
|
||||
*/
|
||||
@Schema(description = "业务员手机号", example = "15888610253")
|
||||
private String salespersonPhone;
|
||||
|
||||
/**
|
||||
* 绑定的推广码信息key
|
||||
*/
|
||||
@Schema(description = "绑定的推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 绑定的推广码链接
|
||||
*/
|
||||
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 绑定的项目名称
|
||||
*/
|
||||
@Schema(description = "绑定的项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
Reference in New Issue
Block a user