|
|
|
@ -21,7 +21,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import javax.validation.constraints.Pattern;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -168,8 +167,7 @@ public class TeacherOpenCourseStudentSigninSettingService extends CoreBaseServic
|
|
|
|
|
*/
|
|
|
|
|
public void updateStatus(@NotNull(message = "签到配置ID不能为空!") Long id,
|
|
|
|
|
@NotNull(message = "签到状态不能为空!")
|
|
|
|
|
@Pattern(regexp = "[12]",message = "状态只接收两个值:1开始 2结束")
|
|
|
|
|
Integer status) {
|
|
|
|
|
Integer status) {
|
|
|
|
|
TeacherOpenCourseStudentSigninSetting model = new TeacherOpenCourseStudentSigninSetting();
|
|
|
|
|
model.setTeacherOpenCourseStudentSigninSettingId(id);
|
|
|
|
|
|
|
|
|
@ -188,6 +186,6 @@ public class TeacherOpenCourseStudentSigninSettingService extends CoreBaseServic
|
|
|
|
|
} break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
update(model);
|
|
|
|
|
updateTemplate(model);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|