add 平台测试员列表查询接口

This commit is contained in:
jsowell
2026-08-06 13:50:24 +08:00
parent 323b43be53
commit 1ce9e78128
5 changed files with 46 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ UI (from `jsowell-charge-ui/`):
- Java: follow existing conventions (4 spaces; `PascalCase` types; `camelCase` methods; `UPPER_SNAKE_CASE` constants). Keep changes scoped to one module when possible.
- UI: follow `jsowell-charge-ui/.editorconfig` + `jsowell-charge-ui/.eslintrc.js` (2 spaces, single quotes, no semicolons). Run `npm run lint` before PRs.
- UI: when creating `el-card` cards in `jsowell-charge-ui`, always add top/bottom padding to the card body. The global style `jsowell-charge-ui/src/assets/styles/common.scss` sets `.el-card__body { padding: 0 20px }` (no vertical padding), so content sticks to the header/bottom edges. Prefer a scoped rule per card, e.g. `.xxx-card .el-card__body { padding: 12px 20px 14px; }`.
## Testing Guidelines

View File

@@ -322,6 +322,14 @@ public class MemberBasicInfoController extends BaseController {
return result;
}
/**
* 查询平台测试员列表
*/
@PostMapping("/listPlatformTester")
public AjaxResult listPlatformTester() {
return AjaxResult.success(memberBasicInfoService.listPlatformTester());
}
/**
* 查询会员明细
* @param dto

View File

@@ -145,6 +145,12 @@ public interface MemberBasicInfoService {
PlatformTesterVO selectPlatformTesterStatus(String memberId);
/**
* 查询平台测试员列表
* @return
*/
List<PlatformTesterVO> listPlatformTester();
/**
* 小程序查询会员钱包明细
* @return

View File

@@ -691,6 +691,31 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
return vo;
}
/**
* 查询平台测试员列表
* @return
*/
@Override
public List<PlatformTesterVO> listPlatformTester() {
List<PlatformTesterVO> list = Lists.newArrayList();
Collection<String> keys = redisCache.keys(CacheConstants.PLATFORM_TESTER + "*");
if (CollectionUtils.isEmpty(keys)) {
return list;
}
for (String key : keys) {
String memberId = key.substring(CacheConstants.PLATFORM_TESTER.length());
PlatformTesterVO vo = new PlatformTesterVO();
vo.setMemberId(memberId);
vo.setStatus(Constants.ONE);
MemberBasicInfo member = memberBasicInfoMapper.selectInfoByMemberId(memberId);
if (member != null) {
vo.setMobileNumber(member.getMobileNumber());
}
list.add(vo);
}
return list;
}
/**
* 小程序查询会员钱包明细
* @param dto

View File

@@ -21,11 +21,17 @@ public class PlatformTesterVO {
*/
private String status;
/**
* 手机号
*/
private String mobileNumber;
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
.append("memberId", memberId)
.append("status", status)
.append("mobileNumber", mobileNumber)
.toString();
}
}