|
|
|
@ -8,7 +8,9 @@ import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.entity.TaskTypeParam;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseHandsOnSimulationTasks;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseHandsOnSimulationTasksFile;
|
|
|
|
|
import com.ibeetl.jlw.service.TeacherOpenCourseHandsOnSimulationTasksService;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseHandsOnSimulationTasksFileQuery;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseHandsOnSimulationTasksQuery;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
@ -140,7 +142,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 +195,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(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseHandsOnSimulationTasksQuery teacherOpenCourseHandsOnSimulationTasksQuery,
|
|
|
|
|
BindingResult result,@SCoreUser CoreUser coreUser){
|
|
|
|
|
if(result.hasErrors()){
|
|
|
|
|
return JsonResult.failMessage(result);
|
|
|
|
|
}else{
|
|
|
|
|