删除时同步授课记录学员数

This commit is contained in:
Wangxxz
2024-11-03 16:08:53 +08:00
parent 1a6c8f8af9
commit 9faa8307ee
3 changed files with 19 additions and 3 deletions

View File

@@ -75,6 +75,8 @@ public class ThirdApi {
@Value("${coursesuilt.updateOrSaveCourse}")
private String updateOrSaveCourse;
@Value("${coursesuilt.syncCourseStudent}")
private String syncCourseStudent;
//获取例外人员的id
@@ -314,5 +316,10 @@ public class ThirdApi {
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
log.info("updateOrSaveCourse = " + resp);
}
public void syncCourseStudent(Long courseId, String token){
String resp = Optional.ofNullable(
HttpRequest.post(syncCourseStudent).body(JSONUtil.toJsonStr(courseId)).header("token", token).execute()
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
log.info("updateOrSaveCourse = " + resp);
}
}