fix: 实现parseProjects方法解析裁判分配的项目ID
修复裁判登录API返回projects为空的问题,原parseProjects方法未实现 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot]
parent
bf1ab59c9b
commit
63a6a7331b
+14
-3
@@ -154,9 +154,20 @@ public class MiniAuthServiceImpl implements IMiniAuthService {
|
||||
return convertToProjectInfoList(projectService.list(query));
|
||||
}
|
||||
|
||||
private List<MiniLoginVO.ProjectInfo> parseProjects(String projectsJson) {
|
||||
// TODO: parse JSON if needed in future
|
||||
return new ArrayList<>();
|
||||
private List<MiniLoginVO.ProjectInfo> parseProjects(String projectIds) {
|
||||
List<MiniLoginVO.ProjectInfo> result = new ArrayList<>();
|
||||
if (Func.isBlank(projectIds)) {
|
||||
return result;
|
||||
}
|
||||
List<Long> ids = Func.toLongList(projectIds);
|
||||
if (ids.isEmpty()) {
|
||||
return result;
|
||||
}
|
||||
LambdaQueryWrapper<MartialProject> query = new LambdaQueryWrapper<>();
|
||||
query.in(MartialProject::getId, ids);
|
||||
query.eq(MartialProject::getIsDeleted, 0);
|
||||
query.orderByAsc(MartialProject::getSortOrder);
|
||||
return convertToProjectInfoList(projectService.list(query));
|
||||
}
|
||||
|
||||
private List<MiniLoginVO.ProjectInfo> getProjectsByVenue(Long venueId) {
|
||||
|
||||
Reference in New Issue
Block a user