Browse Source

加按uid查询

master
nili 6 months ago
parent
commit
1c36f460b2
  1. 1
      game-service/src/main/java/awesome/group/game/service/bo/matrix/UserQuery.java
  2. 4
      game-service/src/main/java/awesome/group/game/service/matrix/MatrixUserService.java

1
game-service/src/main/java/awesome/group/game/service/bo/matrix/UserQuery.java

@ -4,5 +4,6 @@ import awesome.group.game.service.bo.PageParam;
public class UserQuery extends PageParam {
public String appCode;
public Integer userId;
}

4
game-service/src/main/java/awesome/group/game/service/matrix/MatrixUserService.java

@ -35,7 +35,9 @@ public class MatrixUserService {
MatrixApp app = appMapper.queryByCode(query.appCode);
LambdaQueryWrapper<MatrixUser> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(MatrixUser::getAppId, app.getId());
if (query.userId != null) {
wrapper.eq(MatrixUser::getId, query.userId);
}
int page = query.current;
int pageSize = query.pageSize;
wrapper.orderByDesc(MatrixUser::getId);

Loading…
Cancel
Save