Przeglądaj źródła

所需功能需改后首次提交

Yangzw 2 miesięcy temu
rodzic
commit
2aa76c66b5

+ 0 - 40
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/controller/admin/ptprofit/vo/PtProfitRespVO.java

@@ -1,40 +0,0 @@
-package cn.newfeifan.mall.module.distri.controller.admin.ptprofit.vo;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.*;
-import java.time.LocalDateTime;
-import com.alibaba.excel.annotation.*;
-
-@Schema(description = "管理后台 - 平台利润 Response VO")
-@Data
-@ExcelIgnoreUnannotated
-public class PtProfitRespVO {
-
-    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24754")
-    @ExcelProperty("用户编号")
-    private Long id;
-
-    @Schema(description = "平台服务费(毛利下的百分比收益)")
-    @ExcelProperty("平台服务费(毛利下的百分比收益)")
-    private Integer ptAdd;
-
-    @Schema(description = "平台收益(0.3888 之外的收益)")
-    @ExcelProperty("平台收益(0.3888 之外的收益)")
-    private Integer ptGrossAdd;
-
-    @Schema(description = "平台总收益")
-    @ExcelProperty("平台总收益")
-    private Integer ptTotalAdd;
-
-    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
-    @ExcelProperty("创建时间")
-    private LocalDateTime createTime;
-
-    @Schema(description = "利润", requiredMode = Schema.RequiredMode.REQUIRED)
-    @ExcelProperty("利润")
-    private Long profit;
-
-    @Schema(description = "游客收益", requiredMode = Schema.RequiredMode.REQUIRED)
-    @ExcelProperty("游客收益")
-    private Long visitorEarnings;
-}

+ 0 - 64
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/controller/app/orderpercentage/vo/OrderPercentageSaveReqVO.java

@@ -1,64 +0,0 @@
-package cn.newfeifan.mall.module.distri.controller.app.orderpercentage.vo;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.*;
-
-@Schema(description = "管理后台 - 积分相关计算浮动百分比设置新增/修改 Request VO")
-@Data
-public class OrderPercentageSaveReqVO {
-
-    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2203")
-    private Long id;
-
-    @Schema(description = "毛利 = 成本 * 0.38... (推广费用)")
-    private Integer grossProfitPerc;
-
-    @Schema(description = "推广-用户额度 百分比")
-    private Integer grossProfitUserQuotaPerc;
-
-    @Schema(description = "推广-推荐人额度 百分比")
-    private Integer grossProfitAncestorQuotaPerc;
-
-    @Schema(description = "推广-合赢奖额度(浮动) 百分比")
-    private Integer grossProfitBonusQuotaPerc;
-
-    @Schema(description = "推广-平台分成额度(浮动) 百分比")
-    private Integer grossProfitPlatformQuotaPerc;
-
-    @Schema(description = "分成百分比")
-    private Integer divideIntoPerc;
-
-    @Schema(description = "购物订单:直推人身价提升", example = "1")
-    private String orderAncestorSocialStatus;
-
-    @Schema(description = "购物订单:本人身价提升", example = "2")
-    private String orderUserSocialStatus;
-
-    @Schema(description = "新用户注册:直推人身价提升", example = "2")
-    private String registerAncestorSocialStatus;
-
-    @Schema(description = "新用户注册:本人身价提升", example = "2")
-    private String registerSocialStatus;
-
-    @Schema(description = "是否启用 0关闭 1启动", example = "2")
-    private Integer status;
-
-
-    @Schema(description = "用户注册后,获得的基础最大合赢奖、直推奖积分限额")
-    private String baseMaxQuota;
-
-    @Schema(description = "收藏商品获取身价值,同一SPU商品收藏多次无效", example = "1")
-    private String collectSocialStatus;
-
-    @Schema(description = "提现消费分百分比")
-    private String withdrawConsumption;
-
-    @Schema(description = "提现佣金百分比")
-    private String withdrawCommission;
-
-    @Schema(description = "用户充值消费分的额度")
-    private String userTopUpConsumptionPoints;
-
-    @Schema(description = "触发倍率的最低金额")
-    private String triggerMagnificationPoints;
-}

+ 0 - 46
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/service/sharepath/builder/TreeBuilder.java

@@ -1,46 +0,0 @@
-package cn.newfeifan.mall.module.distri.service.sharepath.builder;
-
-import cn.newfeifan.mall.module.distri.controller.app.sharepath.vo.TreeNode;
-import cn.newfeifan.mall.module.distri.dal.dataobject.sharepath.SharePathDO;
-import org.springframework.stereotype.Component;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-
-@Component
-public class TreeBuilder {
-    private Map<Long, List<SharePathDO>> childrenMap = new HashMap<>();
-
-    public TreeNode buildTree(List<SharePathDO> paths) {
-        // 初始化childrenMap
-        for (SharePathDO path : paths) {
-            childrenMap.computeIfAbsent(path.getAncestor(), k -> new ArrayList<>()).add(path);
-        }
-
-        // 假设根节点的ancestor为null或特定值,这里以null为例
-        return buildTreeNode(null);
-    }
-
-    private TreeNode buildTreeNode(Long parentId) {
-        List<SharePathDO> children = childrenMap.get(parentId);
-        if (children == null) {
-            return null;
-        }
-
-        TreeNode node = new TreeNode(); // TreeNode是自定义的树节点类,需要包含子节点列表等信息
-        List<TreeNode> childNodes = new ArrayList<>();
-
-        for (SharePathDO child : children) {
-            TreeNode childNode = buildTreeNode(child.getDescendant());
-            if (childNode != null) {
-                childNodes.add(childNode);
-            }
-        }
-
-        node.setChildren(childNodes);
-        return node;
-    }
-}