mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-21 00:36:51 +08:00
同步授课记录评分
This commit is contained in:
@@ -6,6 +6,7 @@ import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.xboe.api.vo.*;
|
||||
import com.xboe.module.course.dto.CourseParam;
|
||||
import com.xboe.module.course.dto.ScoreParam;
|
||||
import com.xboe.module.course.vo.StudyCourseVo;
|
||||
import com.xboe.module.course.vo.TeacherInfoVo;
|
||||
import com.xboe.module.course.vo.TeacherVo;
|
||||
@@ -77,7 +78,8 @@ public class ThirdApi {
|
||||
private String updateOrSaveCourse;
|
||||
@Value("${coursesuilt.syncCourseStudent}")
|
||||
private String syncCourseStudent;
|
||||
|
||||
@Value("${coursesuilt.syncOnLineScore}")
|
||||
private String syncOnLineScore;
|
||||
|
||||
//获取例外人员的id
|
||||
public List<String> getUserId(){
|
||||
@@ -320,6 +322,13 @@ public class ThirdApi {
|
||||
String resp = Optional.ofNullable(
|
||||
HttpRequest.post(syncCourseStudent).body(JSONUtil.toJsonStr(courseId)).header("token", token).execute()
|
||||
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
|
||||
log.info("updateOrSaveCourse = " + resp);
|
||||
log.info("syncCourseStudent = " + resp);
|
||||
}
|
||||
|
||||
public void syncOnLineScore(ScoreParam param, String token) {
|
||||
String resp = Optional.ofNullable(
|
||||
HttpRequest.post(syncOnLineScore).body(JSONUtil.toJsonStr(param)).header("token", token).execute()
|
||||
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
|
||||
log.info("syncOnLineScore = " + resp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user