mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-11 08:43:49 +08:00
add 平台测试员列表查询接口
This commit is contained in:
@@ -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.
|
- 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: 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
|
## Testing Guidelines
|
||||||
|
|
||||||
|
|||||||
@@ -322,6 +322,14 @@ public class MemberBasicInfoController extends BaseController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询平台测试员列表
|
||||||
|
*/
|
||||||
|
@PostMapping("/listPlatformTester")
|
||||||
|
public AjaxResult listPlatformTester() {
|
||||||
|
return AjaxResult.success(memberBasicInfoService.listPlatformTester());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询会员明细
|
* 查询会员明细
|
||||||
* @param dto
|
* @param dto
|
||||||
|
|||||||
@@ -145,6 +145,12 @@ public interface MemberBasicInfoService {
|
|||||||
|
|
||||||
PlatformTesterVO selectPlatformTesterStatus(String memberId);
|
PlatformTesterVO selectPlatformTesterStatus(String memberId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询平台测试员列表
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<PlatformTesterVO> listPlatformTester();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小程序查询会员钱包明细
|
* 小程序查询会员钱包明细
|
||||||
* @return
|
* @return
|
||||||
|
|||||||
@@ -691,6 +691,31 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
|
|||||||
return vo;
|
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
|
* @param dto
|
||||||
|
|||||||
@@ -21,11 +21,17 @@ public class PlatformTesterVO {
|
|||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手机号
|
||||||
|
*/
|
||||||
|
private String mobileNumber;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
||||||
.append("memberId", memberId)
|
.append("memberId", memberId)
|
||||||
.append("status", status)
|
.append("status", status)
|
||||||
|
.append("mobileNumber", mobileNumber)
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user