结算记录

This commit is contained in:
2025-05-10 19:03:59 +08:00
parent 9239d7fa7a
commit 820f1763bd
20 changed files with 1086 additions and 0 deletions

View File

@ -0,0 +1,54 @@
package com.greenorange.promotion.model.dto.fundsChange;
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 = {
"projectName",
"changeAmount",
"currentAmount",
"userId",
})
public class FundsChangeAddRequest implements Serializable {
/**
* 项目名称
*/
@NotBlank(message = "项目名称不能为空")
@Schema(description = "项目名称", example = "饿了么-超吃卡")
private String projectName;
/**
* 变动金额
*/
@Schema(description = "变动金额", example = "0.96")
private BigDecimal changeAmount;
/**
* 当前金额(变动后的总金额)
*/
@Schema(description = "当前金额(变动后的总金额)", example = "0.34")
private BigDecimal currentAmount;
/**
* 用户ID
*/
@Min(value = 1L, message = "用户ID ID不能小于1")
@Schema(description = "用户ID", example = "1")
private Long userId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,57 @@
package com.greenorange.promotion.model.dto.fundsChange;
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 FundsChangeQueryRequest 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 = "饿了么-超吃卡")
private String projectName;
/**
* 变动金额
*/
@Schema(description = "变动金额", example = "0.96")
private BigDecimal changeAmount;
/**
* 当前金额(变动后的总金额)
*/
@Schema(description = "当前金额(变动后的总金额)", example = "0.34")
private BigDecimal currentAmount;
/**
* 用户ID
*/
@Min(value = 1L, message = "用户ID ID不能小于1")
@Schema(description = "用户ID", example = "1")
private Long userId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,61 @@
package com.greenorange.promotion.model.dto.fundsChange;
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",
"projectName",
"changeAmount",
"currentAmount",
"userId",
})
public class FundsChangeUpdateRequest implements Serializable {
/**
* 资金变动ID
*/
@Min(value = 1L, message = "资金变动ID ID不能小于1")
@Schema(description = "资金变动ID", example = "1")
private Long id;
/**
* 项目名称
*/
@NotBlank(message = "项目名称不能为空")
@Schema(description = "项目名称", example = "饿了么-超吃卡")
private String projectName;
/**
* 变动金额
*/
@Schema(description = "变动金额", example = "0.96")
private BigDecimal changeAmount;
/**
* 当前金额(变动后的总金额)
*/
@Schema(description = "当前金额(变动后的总金额)", example = "0.34")
private BigDecimal currentAmount;
/**
* 用户ID
*/
@Min(value = 1L, message = "用户ID ID不能小于1")
@Schema(description = "用户ID", example = "1")
private Long userId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,69 @@
package com.greenorange.promotion.model.dto.projectSettlement;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 项目结算记录添加请求体
*/
@Data
@Schema(description = "项目结算记录添加请求体", requiredProperties = {
"projectDetailName",
"settlementQuantity",
"settlementRevenue",
"workTime",
"settlementTime",
"promoCodeRequestRecordId",
})
public class ProjectSettlementAddRequest implements Serializable {
/**
* 项目明细名称
*/
@NotBlank(message = "项目明细名称不能为空")
@Schema(description = "项目明细名称", example = "新用户完成首单")
private String projectDetailName;
/**
* 结算数量
*/
@Schema(description = "结算数量", example = "2")
private Integer settlementQuantity;
/**
* 结算收益
*/
@Schema(description = "结算收益", example = "2.34")
private BigDecimal settlementRevenue;
/**
* 作业时间
*/
@Schema(description = "作业时间", example = "2025-05-10 10:00:00")
private LocalDateTime workTime;
/**
* 结算时间
*/
@Schema(description = "结算时间", example = "2025-05-12 10:00:00")
private LocalDateTime settlementTime;
/**
* 推广码申请记录id
*/
@Min(value = 1L, message = "推广码申请记录id ID不能小于1")
@Schema(description = "推广码申请记录id", example = "1")
private Long promoCodeRequestRecordId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,71 @@
package com.greenorange.promotion.model.dto.projectSettlement;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.greenorange.promotion.common.PageRequest;
/**
* 项目结算记录查询请求体,继承自分页请求 PageRequest
*/
@Data
@Schema(description = "项目结算记录查询请求体", requiredProperties = {"current", "pageSize"})
public class ProjectSettlementQueryRequest 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 = "新用户完成首单")
private String projectDetailName;
/**
* 结算数量
*/
@Schema(description = "结算数量", example = "2")
private Integer settlementQuantity;
/**
* 结算收益
*/
@Schema(description = "结算收益", example = "2.34")
private BigDecimal settlementRevenue;
/**
* 作业时间
*/
@Schema(description = "作业时间", example = "2025-05-10 10:00:00")
private LocalDateTime workTime;
/**
* 结算时间
*/
@Schema(description = "结算时间", example = "2025-05-12 10:00:00")
private LocalDateTime settlementTime;
/**
* 推广码申请记录id
*/
@Min(value = 1L, message = "推广码申请记录id ID不能小于1")
@Schema(description = "推广码申请记录id", example = "1")
private Long promoCodeRequestRecordId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,76 @@
package com.greenorange.promotion.model.dto.projectSettlement;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 项目结算记录更新请求体
*/
@Data
@Schema(description = "项目结算记录更新请求体", requiredProperties = {
"id",
"projectDetailName",
"settlementQuantity",
"settlementRevenue",
"workTime",
"settlementTime",
"promoCodeRequestRecordId",
})
public class ProjectSettlementUpdateRequest implements Serializable {
/**
* 结算记录ID
*/
@Min(value = 1L, message = "结算记录ID ID不能小于1")
@Schema(description = "结算记录ID", example = "1")
private Long id;
/**
* 项目明细名称
*/
@NotBlank(message = "项目明细名称不能为空")
@Schema(description = "项目明细名称", example = "新用户完成首单")
private String projectDetailName;
/**
* 结算数量
*/
@Schema(description = "结算数量", example = "2")
private Integer settlementQuantity;
/**
* 结算收益
*/
@Schema(description = "结算收益", example = "2.34")
private BigDecimal settlementRevenue;
/**
* 作业时间
*/
@Schema(description = "作业时间", example = "2025-05-10 10:00:00")
private LocalDateTime workTime;
/**
* 结算时间
*/
@Schema(description = "结算时间", example = "2025-05-12 10:00:00")
private LocalDateTime settlementTime;
/**
* 推广码申请记录id
*/
@Min(value = 1L, message = "推广码申请记录id ID不能小于1")
@Schema(description = "推广码申请记录id", example = "1")
private Long promoCodeRequestRecordId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,62 @@
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 funds_change
*/
@TableName(value ="funds_change")
@Data
public class FundsChange implements Serializable {
/**
* 资金变动ID
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 项目名称
*/
private String projectName;
/**
* 变动金额
*/
private BigDecimal changeAmount;
/**
* 当前金额(变动后的总金额)
*/
private BigDecimal currentAmount;
/**
* 用户ID
*/
private Long userId;
/**
* 是否删除
*/
private Integer isDelete;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,72 @@
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 project_settlement
*/
@TableName(value ="project_settlement")
@Data
public class ProjectSettlement implements Serializable {
/**
* 结算记录ID
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 项目明细名称
*/
private String projectDetailName;
/**
* 结算数量
*/
private Integer settlementQuantity;
/**
* 结算收益
*/
private BigDecimal settlementRevenue;
/**
* 作业时间
*/
private Date workTime;
/**
* 结算时间
*/
private Date settlementTime;
/**
* 推广码申请记录id
*/
private Long promoCodeRequestRecordId;
/**
* 是否删除
*/
private Integer isDelete;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,50 @@
package com.greenorange.promotion.model.vo.fundsChange;
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 FundsChangeVO implements Serializable {
/**
* 资金变动记录ID
*/
@Schema(description = "资金变动记录ID", example = "1")
private Long id;
/**
* 项目名称
*/
@Schema(description = "项目名称", example = "饿了么-超吃卡")
private String projectName;
/**
* 变动金额
*/
@Schema(description = "变动金额", example = "0.96")
private BigDecimal changeAmount;
/**
* 当前金额(变动后的总金额)
*/
@Schema(description = "当前金额(变动后的总金额)", example = "0.34")
private BigDecimal currentAmount;
/**
* 用户ID
*/
@Schema(description = "用户ID", example = "1")
private Long userId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,63 @@
package com.greenorange.promotion.model.vo.projectSettlement;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 项目结算记录 视图对象
*/
@Data
@Schema(description = "项目结算记录 视图对象")
public class ProjectSettlementVO implements Serializable {
/**
* 项目结算记录ID
*/
@Schema(description = "项目结算记录ID", example = "1")
private Long id;
/**
* 项目明细名称
*/
@Schema(description = "项目明细名称", example = "新用户完成首单")
private String projectDetailName;
/**
* 结算数量
*/
@Schema(description = "结算数量", example = "2")
private Integer settlementQuantity;
/**
* 结算收益
*/
@Schema(description = "结算收益", example = "2.34")
private BigDecimal settlementRevenue;
/**
* 作业时间
*/
@Schema(description = "作业时间", example = "2025-05-10 10:00:00")
private LocalDateTime workTime;
/**
* 结算时间
*/
@Schema(description = "结算时间", example = "2025-05-12 10:00:00")
private LocalDateTime settlementTime;
/**
* 推广码申请记录id
*/
@Schema(description = "推广码申请记录id", example = "1")
private Long promoCodeRequestRecordId;
@Serial
private static final long serialVersionUID = 1L;
}