| | |
| | | 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; |
| | |
| | | @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; |
| | |
| | | @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; |
| | |
| | | @ApiModelProperty(value = "技师业绩积分总数") |
| | | @TableField("total_performance_point") |
| | | private Integer totalPerformancePoint; |
| | | |
| | | |
| | | @ApiModelProperty(value = "总积分") |
| | | @TableField("total_point") |
| | |
| | | @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; |
| | | } |
| | | |
| | | |
| | | |
| | | } |