mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 02:16:49 +08:00
格式化
This commit is contained in:
@@ -93,6 +93,7 @@ public class ThirdApi {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//获取面授课id
|
||||
public List<String> getOffCourseId(String userId, String token) {
|
||||
log.info("正在获取面授课id");
|
||||
@@ -100,6 +101,7 @@ public class ThirdApi {
|
||||
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
|
||||
return Opt.ofBlankAble(s).map(t -> JSONUtil.toBean(t, StringResult.class)).map(StringResult::getData).orElseThrow();
|
||||
}
|
||||
|
||||
//获取离职教师信息
|
||||
public List<TeacherVo> getTeacherInfo(List<String> teacherIds, String token) {
|
||||
TeacherInfoVo teacherInfoVo = new TeacherInfoVo();
|
||||
@@ -113,6 +115,7 @@ public class ThirdApi {
|
||||
log.info("getTeacherIdsResult = " + getTeacherIdsResult.getResult());
|
||||
return getTeacherIdsResult.getResult();
|
||||
}
|
||||
|
||||
public List<TeacherVo> getTeacherInfoByCode(List<String> teacherCode, String token) {
|
||||
TeacherInfoVo teacherInfoVo = new TeacherInfoVo();
|
||||
teacherInfoVo.setTeacherCode(teacherCode);
|
||||
@@ -125,6 +128,7 @@ public class ThirdApi {
|
||||
log.info("getTeacherIdsResult = " + getTeacherIdsResult);
|
||||
return getTeacherIdsResult.getResult();
|
||||
}
|
||||
|
||||
public List<UserInfoListVo> getAllUserList(UserListParam userListParam, String token) {
|
||||
log.info("获取用户:url:{}", searchOrgUsersUrl);
|
||||
log.info("获取用户:params:{}", JSONUtil.toJsonStr(userListParam));
|
||||
@@ -191,6 +195,7 @@ public class ThirdApi {
|
||||
.map(result -> Opt.ofEmptyAble(result.getList()).peek(t -> nextPage(userdynamicParam, t, result, token)).orElse(ListUtil.toList()))
|
||||
.orElse(ListUtil.toList());
|
||||
}
|
||||
|
||||
private void nextPage(UserdynamicParam userdynamicParam, List<UserDynamic> t, UserDynamicResult result, String token) {
|
||||
log.error("=2----getAllUserdynamicList----- 开始课程信息 ---------------------------------resp = " + userdynamicParam);
|
||||
if (result.getTotalPages() > userdynamicParam.getPageIndex()) {
|
||||
@@ -235,9 +240,6 @@ public class ThirdApi {
|
||||
List<UserDynamic> list = a.getResult().getList();
|
||||
System.out.println(" list = " + list.size());
|
||||
System.out.println(" list = " + list);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -261,7 +263,6 @@ public class ThirdApi {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
try {
|
||||
builder.append("pageIndex=").append(URLEncoder.encode(param.getPageIndex().toString(), "UTF-8"));
|
||||
|
||||
builder.append("&pageSize=").append(URLEncoder.encode(param.getPageSize().toString(), "UTF-8"));
|
||||
builder.append("&contentType=").append(URLEncoder.encode(param.getContentType().toString(), "UTF-8"));
|
||||
builder.append("&aid=").append(URLEncoder.encode(param.getAid().toString(), "UTF-8"));
|
||||
|
||||
Reference in New Issue
Block a user