|
|
|
@ -1,9 +1,5 @@
|
|
|
|
|
package com.ibeetl.jlw.web;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
|
import cn.hutool.extra.validation.BeanValidationResult;
|
|
|
|
|
import cn.hutool.extra.validation.ValidationUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
@ -27,7 +23,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -204,9 +199,7 @@ public class TeacherOpenCourseStudentSigninLogController{
|
|
|
|
|
@PostMapping(MODEL + "/signin.json")
|
|
|
|
|
@Function("teacherOpenCourseStudentSigninLog.add")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult signin(@NotNull(message="签到DTO不能为空!") TeacherOpenCourseStudentSigninLogSigninDTO signinDTO) {
|
|
|
|
|
BeanValidationResult beanValidationResult = ValidationUtil.warpValidate(signinDTO, ValidateConfig.ADD.class);
|
|
|
|
|
Assert.isTrue(beanValidationResult.isSuccess(), JSONUtil.toJsonStr(beanValidationResult.getErrorMessages()));
|
|
|
|
|
public JsonResult signin(TeacherOpenCourseStudentSigninLogSigninDTO signinDTO) {
|
|
|
|
|
teacherOpenCourseStudentSigninLogService.signin(signinDTO);
|
|
|
|
|
return JsonResult.successMessage("签到成功!");
|
|
|
|
|
}
|
|
|
|
|