|
|
|
@ -473,4 +473,39 @@ public class TeacherOpenCourseHandsOnController{
|
|
|
|
|
return teacherOpenCourseHandsOnService.getTaskTypeParam(teacherOpenCourseId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 实操删除
|
|
|
|
|
* @param ids
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping(MODEL + "/delete.do")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult deleteDo(String ids) {
|
|
|
|
|
teacherOpenCourseHandsOnService.deleteTeacherOpenCourseHandsOn(ids);
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 实操更新
|
|
|
|
|
* @param teacherOpenCourseHandsOnQuery
|
|
|
|
|
* @param result
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping(MODEL + "/edit.do")
|
|
|
|
|
public JsonResult<String> editDo(@Validated(ValidateConfig.UPDATE.class) TeacherOpenCourseHandsOnQuery teacherOpenCourseHandsOnQuery, BindingResult result) {
|
|
|
|
|
if(result.hasErrors()){
|
|
|
|
|
return JsonResult.failMessage(result);
|
|
|
|
|
}else {
|
|
|
|
|
teacherOpenCourseHandsOnQuery.setUserId(null);
|
|
|
|
|
teacherOpenCourseHandsOnQuery.setOrgId(null);
|
|
|
|
|
String msg = teacherOpenCourseHandsOnService.edit(teacherOpenCourseHandsOnQuery);
|
|
|
|
|
if (StringUtils.isBlank(msg)) {
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
} else {
|
|
|
|
|
return JsonResult.failMessage("更新失败,"+msg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|