|
|
|
@ -35,7 +35,6 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
@ -145,14 +144,14 @@ public class TeacherOpenCourseMergeResourcesInfoController{
|
|
|
|
|
/**
|
|
|
|
|
* 更改资源状态,上架下架啥删除.
|
|
|
|
|
* 删除也可以单独调用 {@link #deleteDo}
|
|
|
|
|
* @param ids
|
|
|
|
|
* @param resourcesInfoId
|
|
|
|
|
* @param status
|
|
|
|
|
* @param coreUser
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping(API + "/updateStatus.do")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult updateStatus(@NotBlank(message = "资源ID不能为空!") Long resourcesInfoId,
|
|
|
|
|
public JsonResult updateStatus(@NotNull(message = "资源ID不能为空!") Long resourcesInfoId,
|
|
|
|
|
@NotNull(message = "要更新的状态不能为空!") GlobalUpStatusEnum status, @SCoreUser CoreUser coreUser) {
|
|
|
|
|
teacherOpenCourseMergeResourcesInfoService.validateIsTeacher(resourcesInfoId.toString(), coreUser);
|
|
|
|
|
TeacherOpenCourseMergeResourcesInfoQuery updateQuery = new TeacherOpenCourseMergeResourcesInfoQuery();
|
|
|
|
|