Compare commits
No commits in common. "f680a54b5cc164cac0f4841a4066604eda248c84" and "989adaad4bc6027ea05b1ac386f86706276dcdca" have entirely different histories.
f680a54b5c
...
989adaad4b
@ -8,13 +8,9 @@ import cn.iocoder.yudao.module.conf.entity.BaseType;
|
|||||||
import cn.iocoder.yudao.module.custom.entity.CustomerMain;
|
import cn.iocoder.yudao.module.custom.entity.CustomerMain;
|
||||||
import cn.iocoder.yudao.module.custom.service.CustomerMainService;
|
import cn.iocoder.yudao.module.custom.service.CustomerMainService;
|
||||||
import cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO;
|
import cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO;
|
||||||
import cn.iocoder.yudao.module.member.entity.MemberLevel;
|
|
||||||
import cn.iocoder.yudao.module.member.service.MemberLevelService;
|
|
||||||
import cn.iocoder.yudao.module.member.vo.MemberLevelPageReqVO;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
@ -22,8 +18,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -37,8 +31,6 @@ public class CustomerMainApi {
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private CustomerMainService customerMainService;
|
private CustomerMainService customerMainService;
|
||||||
@Resource
|
|
||||||
private MemberLevelService levelService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询当前登录客户信息
|
* 查询当前登录客户信息
|
||||||
@ -52,10 +44,4 @@ public class CustomerMainApi {
|
|||||||
return success(customerMainService.getUserCustomer());
|
return success(customerMainService.getUserCustomer());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/allMember")
|
|
||||||
@Operation(summary = "获得全部会员")
|
|
||||||
public CommonResult<List<MemberLevel>> getLevelAll(MemberLevelPageReqVO pageReqVO) {
|
|
||||||
return success(levelService.queryListAll(pageReqVO));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,8 +41,6 @@ public class CustomerMainRespVO extends CustomerMain {
|
|||||||
private BigDecimal forzeBalance;
|
private BigDecimal forzeBalance;
|
||||||
/**累计充值额度*/
|
/**累计充值额度*/
|
||||||
private BigDecimal allBalance;
|
private BigDecimal allBalance;
|
||||||
/**会员权益*/
|
|
||||||
private String userEquity;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -15,9 +15,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.Comparator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 会员等级 Service 实现类
|
* 会员等级 Service 实现类
|
||||||
@ -90,8 +88,9 @@ public class MemberLevelServiceImpl extends ServiceImpl<MemberLevelMapper, Membe
|
|||||||
public List<MemberLevel> queryListAll(MemberLevelPageReqVO pageReqVO) {
|
public List<MemberLevel> queryListAll(MemberLevelPageReqVO pageReqVO) {
|
||||||
|
|
||||||
QueryWrapper<MemberLevel> q = new QueryWrapper<>();
|
QueryWrapper<MemberLevel> q = new QueryWrapper<>();
|
||||||
|
q.eq("status","01");
|
||||||
List<MemberLevel> memberLevels = this.levelMapper.selectList(q);
|
List<MemberLevel> memberLevels = this.levelMapper.selectList(q);
|
||||||
return memberLevels.stream().sorted(Comparator.comparing(MemberLevel::getSort)).collect(Collectors.toList());
|
return memberLevels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,6 @@
|
|||||||
main.STATUS AS STATUS,
|
main.STATUS AS STATUS,
|
||||||
group_concat( item.ser_content ) AS serContents,
|
group_concat( item.ser_content ) AS serContents,
|
||||||
memberLevel.NAME AS levelName,
|
memberLevel.NAME AS levelName,
|
||||||
memberLevel.user_equity AS userEquity,
|
|
||||||
COALESCE(bcb.balance, 0.00) AS balance,
|
COALESCE(bcb.balance, 0.00) AS balance,
|
||||||
COALESCE(bcb.forze_balance, 0.00) AS forzeBalance,
|
COALESCE(bcb.forze_balance, 0.00) AS forzeBalance,
|
||||||
COALESCE(bcb.all_balance, 0.00) AS allBalance
|
COALESCE(bcb.all_balance, 0.00) AS allBalance
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user