beetlsql3-dev
Mlxa0324 2 years ago
parent 9ab9d33a9e
commit 43cd07fca5

@ -36,7 +36,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;
@ -200,7 +199,7 @@ public class GeneralQuestionLogController extends BaseController {
* @return
*/
@PostMapping(API + "/tuckByLogIds.do")
public JsonResult tuckByLogIds(@NotBlank(message = "题目日志IDs不能为空") String generalQuestionLogIds, boolean isTuck, @SCoreUser CoreUser coreUser) {
public JsonResult tuckByLogIds(String generalQuestionLogIds, boolean isTuck, @SCoreUser CoreUser coreUser) {
Student student = getStudent();
Assert.notNull(student, "该接口只能学生操作!");
generalQuestionLogService.tuckByLogIds(generalQuestionLogIds, isTuck);

@ -31,7 +31,6 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.LinkedHashMap;
@ -224,7 +223,7 @@ public class TeacherOpenCourseQuestionLogController {
* @return
*/
@PostMapping(API + "/tuckByLogIds.do")
public JsonResult tuck(@NotBlank(message = "题目日志IDs不能为空") String teacherOpenCourseQuestionLogIds, boolean isTuck, @SCoreUser CoreUser coreUser) {
public JsonResult tuck(String teacherOpenCourseQuestionLogIds, boolean isTuck, @SCoreUser CoreUser coreUser) {
Student student = getStudent();
Assert.notNull(student, "该接口只能学生操作!");
teacherOpenCourseQuestionLogService.tuckByLogIds(teacherOpenCourseQuestionLogIds, isTuck);

Loading…
Cancel
Save