luofl
2025-03-18 274673c7c81c639c1edb038281445f076c824dc1
ruoyi-api/ruoyi-api-account/src/main/java/com/ruoyi/account/api/model/AppUser.java
@@ -339,11 +339,27 @@
    @TableField(exist = false)
    private Set<Long> userIds;
    @TableField(exist = false)
    private Integer excludeStatus;
    public String getIdStr(){
        return String.valueOf(id);
    }
    public Integer getUserTotalPoint(){
        if (lowerLevelSharePoint == null){
            lowerLevelSharePoint = 0;
        }
        if (shopSharePoint == null){
            shopSharePoint = 0;
        }
        if (shopAchievementPoint == null){
            shopAchievementPoint = 0;
        }
        return totalPoint - lowerLevelSharePoint - shopSharePoint - shopAchievementPoint;
    }
}