From 46c292cfb644ad7849ca31a07ec3d68616a365b0 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Fri, 16 May 2025 16:26:32 +0800 Subject: [PATCH] feat(mall): 添加会员等级和分销等级字段 --- src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java | 7 +++++++ src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java | 5 +++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java index b645f61..90e9e0f 100644 --- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java +++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java @@ -282,6 +282,11 @@ mallMemberVo.setReferrerName(referMember.getName()); } } + if(mallMember.getStoreMaster() == 0){ + mallMemberVo.setIsTeamLeader(2); + }else{ + mallMemberVo.setIsTeamLeader(1); + } if (StrUtil.isNotBlank(mallMember.getTradePassword())) { mallMemberVo.setHasTradePwd(1); diff --git a/src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java b/src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java index 2bbad1a..8f452e1 100644 --- a/src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java +++ b/src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java @@ -1,6 +1,7 @@ package cc.mrbird.febs.mall.vo; import cc.mrbird.febs.vip.entity.MallVipConfig; +import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -76,6 +77,12 @@ @ApiModelProperty(value = "是否是团长 1: 是 2:否") private Integer isTeamLeader; + @ApiModelProperty(value = "会员等级") + private Integer director; + + @ApiModelProperty(value = "分销等级") + private Integer storeMaster; + @ApiModelProperty(value = "是否是代理 1: 申请中 2:是 3:否") private Integer isAgent; -- Gitblit v1.9.1