结算记录

This commit is contained in:
2025-05-10 20:39:25 +08:00
parent 820f1763bd
commit b4c47cfd38
11 changed files with 177 additions and 75 deletions

View File

@ -18,6 +18,7 @@ import java.io.Serializable;
"changeAmount",
"currentAmount",
"userId",
"projectSettlementId"
})
public class FundsChangeAddRequest implements Serializable {
@ -47,6 +48,13 @@ public class FundsChangeAddRequest implements Serializable {
@Schema(description = "用户ID", example = "1")
private Long userId;
/**
* 项目结算记录ID
*/
@Min(value = 1L, message = "项目结算记录ID ID不能小于1")
@Schema(description = "项目结算记录ID", example = "1")
private Long projectSettlementId;
@Serial
private static final long serialVersionUID = 1L;

View File

@ -50,6 +50,13 @@ public class FundsChangeQueryRequest extends PageRequest implements Serializable
@Schema(description = "用户ID", example = "1")
private Long userId;
/**
* 项目结算记录ID
*/
@Min(value = 1L, message = "项目结算记录ID ID不能小于1")
@Schema(description = "项目结算记录ID", example = "1")
private Long projectSettlementId;
@Serial
private static final long serialVersionUID = 1L;

View File

@ -19,6 +19,7 @@ import java.io.Serializable;
"changeAmount",
"currentAmount",
"userId",
"projectSettlementId"
})
public class FundsChangeUpdateRequest implements Serializable {
@ -55,6 +56,13 @@ public class FundsChangeUpdateRequest implements Serializable {
@Schema(description = "用户ID", example = "1")
private Long userId;
/**
* 项目结算记录ID
*/
@Min(value = 1L, message = "项目结算记录ID ID不能小于1")
@Schema(description = "项目结算记录ID", example = "1")
private Long projectSettlementId;
@Serial
private static final long serialVersionUID = 1L;

View File

@ -7,7 +7,12 @@ import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 资金变动记录表
@ -15,6 +20,9 @@ import lombok.Data;
*/
@TableName(value ="funds_change")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FundsChange implements Serializable {
/**
* 资金变动ID
@ -42,6 +50,11 @@ public class FundsChange implements Serializable {
*/
private Long userId;
/**
* 项目结算记录id
*/
private Long projectSettlementId;
/**
* 是否删除
*/

View File

@ -44,6 +44,11 @@ public class FundsChangeVO implements Serializable {
@Schema(description = "用户ID", example = "1")
private Long userId;
/**
* 项目结算记录ID
*/
@Schema(description = "项目结算记录ID", example = "1")
private Long projectSettlementId;
@Serial
private static final long serialVersionUID = 1L;

View File

@ -1,6 +1,7 @@
package com.greenorange.promotion.model.vo.projectSettlement;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import java.io.Serial;