From cbf2486983b77a27af9968bbb362cb8d43789115 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 26 三月 2025 15:30:53 +0800
Subject: [PATCH] 修改统计bug和部分功能修改

---
 ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/model/AppUser.java |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/model/AppUser.java b/ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/model/AppUser.java
index 1445973..bb22241 100644
--- a/ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/model/AppUser.java
+++ b/ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/model/AppUser.java
@@ -5,6 +5,7 @@
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonInclude;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
@@ -97,6 +98,12 @@
     @ApiModelProperty(value = "推广人姓名")
     @TableField(exist = false)
     private String inviteUserName;
+    @ApiModelProperty(value = "指导老师")
+    @TableField(exist = false)
+    private String teacher;
+    @TableField(exist = false)
+    private String teacherPhone;
+
     @ApiModelProperty(value = "绑定门店id")
     @TableField("shop_id")
     private Integer shopId;
@@ -170,6 +177,14 @@
     @TableField("total_distribution_amount")
     private BigDecimal totalDistributionAmount;
 
+    @ApiModelProperty(value = "冻结分佣金额")
+    @TableField("freeze_commission_amount")
+    private BigDecimal freezeCommissionAmount;
+
+    @ApiModelProperty(value = "冻结分佣积分")
+    @TableField("freeze_commission_point")
+    private Integer freezeCommissionPoint;
+
     @ApiModelProperty(value = "拉新人积分总数")
     @TableField("total_invite_point")
     private Integer totalInvitePoint;
@@ -217,7 +232,6 @@
     @ApiModelProperty(value = "技师业绩积分总数")
     @TableField("total_performance_point")
     private Integer totalPerformancePoint;
-
 
     @ApiModelProperty(value = "总积分")
     @TableField("total_point")
@@ -323,11 +337,33 @@
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime lastOrderTime;
 
+    @TableField(exist = false)
+    private Set<Long> userIds;
+
+    @TableField(exist = false)
+    private Integer excludeStatus;
+
     public String getIdStr(){
         return String.valueOf(id);
     }
 
 
+    public Integer getUserTotalPoint(){
+        if (totalPoint == null){
+            totalPoint = 0;
+        }
+        if (lowerLevelSharePoint == null){
+            lowerLevelSharePoint = 0;
+        }
+        if (shopSharePoint == null){
+            shopSharePoint = 0;
+        }
+        if (shopAchievementPoint == null){
+            shopAchievementPoint = 0;
+        }
+        return totalPoint - lowerLevelSharePoint - shopSharePoint - shopAchievementPoint;
+    }
+
 
 
 }

--
Gitblit v1.7.1