mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 01:46:47 +08:00
@@ -54,14 +54,16 @@ public class ThirdApi {
|
||||
|
||||
//获取例外人员的id
|
||||
public List<String> getUserId(){
|
||||
log.info("正在获取例外人员工号");
|
||||
String s = Optional.ofNullable(HttpRequest.get(infarasApiUrl).execute()
|
||||
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
|
||||
log.info("正在获取例外人员工号 s = " + s);
|
||||
List<DictDto> dictDtos = Opt.ofBlankAble(s).map(t -> JSONUtil.toBean(t, DictResult.class)).map(DictResult::getData).orElseThrow();
|
||||
List<String>userNo=new ArrayList<>();
|
||||
log.info("正在获取例外人员工号 dictDtos = " + dictDtos);
|
||||
List<String> userNo=new ArrayList<>();
|
||||
for (DictDto dictDto : dictDtos) {
|
||||
userNo.add(dictDto.getValue());
|
||||
}
|
||||
log.info("正在获取例外人员工号 userNo = " + userNo);
|
||||
return userDao.getListByUserNos(userNo).stream().map(User::getId).collect(Collectors.toList());
|
||||
}
|
||||
//获取面授课id
|
||||
|
||||
Reference in New Issue
Block a user