|
|
|
@ -17,10 +17,7 @@ import org.beetl.sql.core.engine.PageQuery;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -140,7 +137,9 @@ public class TeacherOpenCourseHandsOnSimulationTasksController{
|
|
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/add.json")
|
|
|
|
|
@Function("teacherOpenCourseHandsOnSimulationTasks.add")
|
|
|
|
|
public JsonResult add(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseHandsOnSimulationTasksQuery teacherOpenCourseHandsOnSimulationTasksQuery, BindingResult result,@SCoreUser CoreUser coreUser){
|
|
|
|
|
public JsonResult add(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseHandsOnSimulationTasksQuery teacherOpenCourseHandsOnSimulationTasksQuery,
|
|
|
|
|
|
|
|
|
|
BindingResult result,@SCoreUser CoreUser coreUser){
|
|
|
|
|
if(result.hasErrors()){
|
|
|
|
|
return JsonResult.failMessage(result);
|
|
|
|
|
}else{
|
|
|
|
@ -191,19 +190,24 @@ public class TeacherOpenCourseHandsOnSimulationTasksController{
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* 教师端-添加任务(统一接口)
|
|
|
|
|
* 任务类型taskType: 1:视频 2:ppt 3:理论 4:实操 5:报告
|
|
|
|
|
* 考核要求assessmentRequirements: A,B,C
|
|
|
|
|
* 任务taskList, 用逗号分开存任务的ID
|
|
|
|
|
* teacherOpenCourseHandsOnSimulationTasksFile 附件集合(存视频ppt和报告模板的文件地址)
|
|
|
|
|
*
|
|
|
|
|
* TODO 这里需要备注每个任务对应的参数例子。
|
|
|
|
|
*
|
|
|
|
|
* @param teacherOpenCourseHandsOnSimulationTasksQuery
|
|
|
|
|
* @param teacherOpenCourseHandsOnSimulationTasksFile 附件
|
|
|
|
|
* @param result
|
|
|
|
|
* @param coreUser
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping(MODEL + "/add.do")
|
|
|
|
|
public JsonResult addTeacherOpenCourseHandsOnSimulationTasks(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseHandsOnSimulationTasksQuery teacherOpenCourseHandsOnSimulationTasksQuery, BindingResult result,@SCoreUser CoreUser coreUser){
|
|
|
|
|
public JsonResult addTeacherOpenCourseHandsOnSimulationTasks(@RequestBody @Validated(ValidateConfig.ADD.class) TeacherOpenCourseHandsOnSimulationTasksQuery teacherOpenCourseHandsOnSimulationTasksQuery,
|
|
|
|
|
BindingResult result,@SCoreUser CoreUser coreUser){
|
|
|
|
|
if(result.hasErrors()){
|
|
|
|
|
return JsonResult.failMessage(result);
|
|
|
|
|
}else{
|
|
|
|
|