|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
package com.ibeetl.jlw.entity;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Dict;
|
|
|
|
|
import com.ibeetl.admin.core.annotation.DictEnum;
|
|
|
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
|
|
@ -13,9 +12,6 @@ import org.beetl.sql.fetch.annotation.FetchSql;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
import static cn.jlw.util.IpUtils.verifyIpRange;
|
|
|
|
|
import static com.ibeetl.jlw.entity.dto.TeacherOpenCourseStudentSigninLogSigninDTO.TeacherOpenCourseStudentSigninLogTypeEnum.ip_signin;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 教师-我的课程-开课-学生签到-配置
|
|
|
|
|
* gen by Spring Boot2 Admin 2022-10-11
|
|
|
|
@ -155,11 +151,6 @@ public class TeacherOpenCourseStudentSigninSetting extends BaseEntity{
|
|
|
|
|
*/
|
|
|
|
|
public void setTeacherOpenCourseStudentSigninSettingType(String teacherOpenCourseStudentSigninSettingType){
|
|
|
|
|
this.teacherOpenCourseStudentSigninSettingType = teacherOpenCourseStudentSigninSettingType;
|
|
|
|
|
// 如果是ip签到类型,验证IP区间字符
|
|
|
|
|
if (StrUtil.isNotBlank(getTeacherOpenCourseStudentSigninSettingValue())
|
|
|
|
|
&& getTeacherOpenCourseStudentSigninSettingType().equals(ip_signin.name())) {
|
|
|
|
|
verifyIpRange(getTeacherOpenCourseStudentSigninSettingValue());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**设置的值:数据例子:IP: x.x.x.x-x.x.x.x,验证码:xxxx,手动签到:无需设置
|
|
|
|
@ -173,12 +164,6 @@ public class TeacherOpenCourseStudentSigninSetting extends BaseEntity{
|
|
|
|
|
*/
|
|
|
|
|
public void setTeacherOpenCourseStudentSigninSettingValue(String teacherOpenCourseStudentSigninSettingValue){
|
|
|
|
|
this.teacherOpenCourseStudentSigninSettingValue = teacherOpenCourseStudentSigninSettingValue;
|
|
|
|
|
|
|
|
|
|
// 如果是ip签到类型,验证IP区间字符
|
|
|
|
|
if (StrUtil.isNotBlank(getTeacherOpenCourseStudentSigninSettingValue())
|
|
|
|
|
&& getTeacherOpenCourseStudentSigninSettingType().equals(ip_signin.name())) {
|
|
|
|
|
verifyIpRange(getTeacherOpenCourseStudentSigninSettingValue());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**签到开始日期
|
|
|
|
|