| | |
| | | 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; |
| | |
| | | @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; |
| | | } |
| | | |
| | | |
| | | |
| | | } |