feat:转账记录代码生成

This commit is contained in:
dzc committed 2025-03-30 20:09:49 +08:00
1 parent 00e53e3f4d
commit c5c400c807
16 files changed
+527 -18

No files matched your search

@@ -7,8 +7,8 @@ import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
//@Builder
//@AllArgsConstructor
//@NoArgsConstructor
public class WalletRuleJoinDto extends WalletRuleJoinEntity {
}
@@ -0,0 +1,6 @@
package com.bsd.pjcloud.wallet.api.dto.rule;
import com.bsd.pjcloud.wallet.api.entity.rule.WalletRuleTransactionEntity;
public class WalletRuleTransactionDto extends WalletRuleTransactionEntity {
}
@@ -0,0 +1,118 @@
package com.bsd.pjcloud.wallet.api.entity.rule;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.bsd.pjcloud.common.core.util.TenantTable;
import java.time.LocalDateTime;
/**
* 钱包转账记录
*/
@Data
@TenantTable
@TableName("wallet_rule_transaction")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "钱包转账记录")
public class WalletRuleTransactionEntity extends Model<WalletRuleTransactionEntity> {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="主键")
private Long id;
/**
* 源钱包id
*/
@Schema(description="源钱包id")
private Long sourceWalletId;
/**
* 目标钱包id
*/
@Schema(description="目标钱包id")
private Long targetWalletId;
/**
* 源钱包余额
*/
@Schema(description="源钱包余额")
private Integer sourceWalletBalance;
/**
* 目标钱包余额
*/
@Schema(description="目标钱包余额")
private Integer targetWalletBalance;
/**
* 转换金额
*/
@Schema(description="转换金额")
private Integer balance;
/**
* 转换后的金额
*/
@Schema(description="转换后的金额")
private Integer afterBalance;
/**
* 钱包转换百分比
*/
@Schema(description="钱包转换百分比")
private Integer balanceMultiple;
/**
* 是否退回
*/
@Schema(description="是否退回")
private String isRefund;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建人")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
private LocalDateTime createTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改人")
private String updateBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改时间")
private LocalDateTime updateTime;
/**
* 删除标记
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description="删除标记")
private String delFlag;
/**
* 租户ID
*/
@Schema(description="租户ID")
private Long tenantId;
}
@@ -12,4 +12,22 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class WalletRuleJoinVo extends WalletRuleJoinEntity {
/**
* 源钱包类型
*/
private String sourceName;
private String sourceUniqueCode;
private String sourceIcon;
/**
* 目标钱包类型
*/
private String targetName;
private String targetUniqueCode;
private String targetIcon;
}
@@ -0,0 +1,6 @@
package com.bsd.pjcloud.wallet.api.vo.rule;
import com.bsd.pjcloud.wallet.api.entity.rule.WalletRuleTransactionEntity;
public class WalletRuleTransactionVo extends WalletRuleTransactionEntity {
}