| | |
| | | |
| | | @ApiOperation("根据推广码获取上级用户信息") |
| | | @GetMapping("/getSuperiorInfo") |
| | | public R<SupervisorUserVO> getSuperiorInfo(@ApiParam(name = "superiorType", value = "上级类型 1:股东;2:营销员") |
| | | public R<SupervisorUserVO> getSuperiorInfo(@ApiParam(name = "superiorType", value = "上级类型 1:股东;2:营销员/合伙人") |
| | | @NotNull(message = "上级类型不能为空") @RequestParam Integer superiorType, |
| | | @ApiParam(name = "spreadCode", value = "推广码") |
| | | @NotNull(message = "推广码不能为空") @RequestParam String spreadCode) { |
| | |
| | | supervisorUserVO.setId(sysUser.getUserId().intValue()); |
| | | supervisorUserVO.setPhone((String) PhoneUtil.hideBetween(sysUser.getPhonenumber())); |
| | | supervisorUserVO.setNickName(sysUser.getNickName()); |
| | | supervisorUserVO.setAvatar(""); //todo 设置默认头像 |
| | | supervisorUserVO.setAvatar(sysUser.getAvatar()); |
| | | } |
| | | } else { |
| | | tAppUserService.lambdaQuery().eq(TAppUser::getCode, spreadCode).ne(TAppUser::getStatus, 3).last("LIMIT 1").oneOpt() |