feat:用户钱包安全删除判断

This commit is contained in:
dzc committed 2025-03-31 12:32:39 +08:00
1 parent c5c400c807
commit c481a2d261
14 files changed
+260 -69

No files matched your search

@@ -15,6 +15,7 @@ public enum WalletBizEnum {
RECHARGE("3", "充值"),
PAYMENT("4", "支付"),
REFUND("5", "退款"),
TRANSFER_ACCOUNTS("6", "转账"),
;
private final String code;
@@ -1,6 +1,20 @@
package com.bsd.pjcloud.wallet.api.dto.rule;
import com.bsd.pjcloud.admin.api.vo.base.BaseIsIncludeTreeInterface;
import com.bsd.pjcloud.wallet.api.entity.rule.WalletRuleTransactionEntity;
import lombok.Data;
import java.util.List;
@Data
public class WalletRuleTransactionDto extends WalletRuleTransactionEntity implements BaseIsIncludeTreeInterface {
/**
* 树状结构搜索
*/
private List<Long> deptIds;
private Boolean isInclude = false;
public class WalletRuleTransactionDto extends WalletRuleTransactionEntity {
}
@@ -6,6 +6,7 @@ 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;
/**
@@ -19,100 +20,100 @@ import java.time.LocalDateTime;
public class WalletRuleTransactionEntity extends Model<WalletRuleTransactionEntity> {
/**
* 主键
*/
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="主键")
@Schema(description = "主键")
private Long id;
/**
* 源钱包id
*/
@Schema(description="源钱包id")
/**
* 源钱包id
*/
@Schema(description = "源钱包id")
private Long sourceWalletId;
/**
* 目标钱包id
*/
@Schema(description="目标钱包id")
/**
* 目标钱包id
*/
@Schema(description = "目标钱包id")
private Long targetWalletId;
/**
* 源钱包余额
*/
@Schema(description="源钱包余额")
/**
* 源钱包余额
*/
@Schema(description = "源钱包余额")
private Integer sourceWalletBalance;
/**
* 目标钱包余额
*/
@Schema(description="目标钱包余额")
/**
* 目标钱包余额
*/
@Schema(description = "目标钱包余额")
private Integer targetWalletBalance;
/**
* 转换金额
*/
@Schema(description="转换金额")
/**
* 转换金额
*/
@Schema(description = "转换金额")
private Integer balance;
/**
* 转换后的金额
*/
@Schema(description="转换后的金额")
/**
* 转换后的金额
*/
@Schema(description = "转换后的金额")
private Integer afterBalance;
/**
* 钱包转换百分比
*/
@Schema(description="钱包转换百分比")
/**
* 钱包转换百分比
*/
@Schema(description = "钱包转换百分比")
private Integer balanceMultiple;
/**
* 是否退回
*/
@Schema(description="是否退回")
/**
* 是否退回
*/
@Schema(description = "是否退回")
private String isRefund;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建人")
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description = "创建人")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description = "创建时间")
private LocalDateTime createTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改人")
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description = "修改人")
private String updateBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改时间")
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description = "修改时间")
private LocalDateTime updateTime;
/**
* 删除标记
*/
/**
* 删除标记
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description="删除标记")
@TableField(fill = FieldFill.INSERT)
@Schema(description = "删除标记")
private String delFlag;
/**
* 租户ID
*/
@Schema(description="租户ID")
/**
* 租户ID
*/
@Schema(description = "租户ID")
private Long tenantId;
}
@@ -49,4 +49,7 @@ public interface RemoteWalletService {
@GetMapping("/wallet-manage/dept-change")
R<Boolean> deptChange(@RequestParam Long deptId, @RequestParam Boolean isDel);
@GetMapping("/wallet-manage/is-del")
R<String> isDel(@RequestParam Long userId);
}
@@ -1,6 +1,30 @@
package com.bsd.pjcloud.wallet.api.vo.rule;
import com.bsd.pjcloud.wallet.api.entity.rule.WalletRuleTransactionEntity;
import lombok.Data;
@Data
public class WalletRuleTransactionVo extends WalletRuleTransactionEntity {
/**
* 用户相关
*/
private Long userId;
private Long deptId;
/**
* 源钱包相关
*/
private String sourceWalletTypeName;
private String sourceWalletTypeCode;
/**
* 目标钱包相关
*/
private String targetWalletTypeName;
private String targetWalletTypeCode;
}