|
|
package com.ibeetl.jlw.entity;
|
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Dict;
|
|
|
import com.ibeetl.admin.core.annotation.DictEnum;
|
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
|
import com.ibeetl.admin.core.util.ValidateConfig;
|
|
|
import com.ibeetl.jlw.enums.StartStatusEnum;
|
|
|
import org.beetl.sql.annotation.entity.AssignID;
|
|
|
import org.beetl.sql.fetch.annotation.Fetch;
|
|
|
import org.beetl.sql.fetch.annotation.FetchSql;
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/*
|
|
|
* 教师-我的课程-开课-学生签到-配置
|
|
|
* gen by Spring Boot2 Admin 2022-10-11
|
|
|
*/
|
|
|
@Fetch
|
|
|
public class TeacherOpenCourseStudentSigninSetting extends BaseEntity{
|
|
|
|
|
|
//ID
|
|
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
|
|
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
|
|
|
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninSetting")
|
|
|
|
|
|
private Long teacherOpenCourseStudentSigninSettingId ;
|
|
|
|
|
|
//开课ID
|
|
|
@Dict(type="teacher_open_course.teacher_open_course_title.teacher_open_course_status=1")
|
|
|
|
|
|
private Long teacherOpenCourseId ;
|
|
|
|
|
|
//班级ID集合
|
|
|
private String schoolClassIds ;
|
|
|
|
|
|
public String getSchoolClassIdsText() {
|
|
|
return schoolClassIdsText;
|
|
|
}
|
|
|
|
|
|
public void setSchoolClassIdsText(String schoolClassIdsText) {
|
|
|
this.schoolClassIdsText = schoolClassIdsText;
|
|
|
}
|
|
|
|
|
|
@FetchSql(
|
|
|
"@if(strUtil.equalsIgnoreCase(schoolClassIds, 'ALL')) { \n" +
|
|
|
"select '所有班级' \n" +
|
|
|
"@} else { \n" +
|
|
|
" select group_concat(class_name) " +
|
|
|
"from school_class " +
|
|
|
"where 1 = 1 " +
|
|
|
"and find_in_set(class_id, #schoolClassIds#) " +
|
|
|
"and class_status = 1 " +
|
|
|
"order by class_id " +
|
|
|
"@}\n" )
|
|
|
private String schoolClassIdsText;
|
|
|
|
|
|
// 所有班级标识
|
|
|
public static String ALL_SCHOOL_CLASS_IDS_SIGN = "ALL";
|
|
|
|
|
|
//签到方式 (数据字典 student_signin_type)
|
|
|
@Dict(type="student_signin_type")
|
|
|
|
|
|
private String teacherOpenCourseStudentSigninSettingType ;
|
|
|
|
|
|
//设置的值:数据例子:IP: x.x.x.x-x.x.x.x,验证码:xxxx,手动签到:无需设置
|
|
|
|
|
|
private String teacherOpenCourseStudentSigninSettingValue ;
|
|
|
|
|
|
//签到开始日期
|
|
|
|
|
|
private Date teacherOpenCourseStudentSigninSettingStartTime ;
|
|
|
|
|
|
//签到结束日期
|
|
|
|
|
|
private Date teacherOpenCourseStudentSigninSettingEndTime ;
|
|
|
|
|
|
|
|
|
@DictEnum
|
|
|
//开始状态
|
|
|
private StartStatusEnum teacherOpenCourseStudentSigninSettingStartStatus;
|
|
|
|
|
|
//创建时间
|
|
|
|
|
|
private Date teacherOpenCourseStudentSigninSettingAddTime ;
|
|
|
|
|
|
//状态 1正常 2删除
|
|
|
@Dict(type="global_status")
|
|
|
|
|
|
private Integer teacherOpenCourseStudentSigninSettingStatus ;
|
|
|
|
|
|
//组织ID
|
|
|
|
|
|
private Long orgId ;
|
|
|
|
|
|
//用户ID
|
|
|
|
|
|
private Long userId ;
|
|
|
|
|
|
public TeacherOpenCourseStudentSigninSetting(){
|
|
|
}
|
|
|
|
|
|
|
|
|
/**ID
|
|
|
*@return
|
|
|
*/
|
|
|
public Long getTeacherOpenCourseStudentSigninSettingId(){
|
|
|
return teacherOpenCourseStudentSigninSettingId;
|
|
|
}
|
|
|
/**ID
|
|
|
*@param teacherOpenCourseStudentSigninSettingId
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingId(Long teacherOpenCourseStudentSigninSettingId){
|
|
|
this.teacherOpenCourseStudentSigninSettingId = teacherOpenCourseStudentSigninSettingId;
|
|
|
}
|
|
|
|
|
|
/**开课ID
|
|
|
*@return
|
|
|
*/
|
|
|
public Long getTeacherOpenCourseId(){
|
|
|
return teacherOpenCourseId;
|
|
|
}
|
|
|
/**开课ID
|
|
|
*@param teacherOpenCourseId
|
|
|
*/
|
|
|
public void setTeacherOpenCourseId(Long teacherOpenCourseId){
|
|
|
this.teacherOpenCourseId = teacherOpenCourseId;
|
|
|
}
|
|
|
|
|
|
/**班级ID集合
|
|
|
*@return
|
|
|
*/
|
|
|
public String getSchoolClassIds(){
|
|
|
return schoolClassIds;
|
|
|
}
|
|
|
/**班级ID集合
|
|
|
*@param schoolClassIds
|
|
|
*/
|
|
|
public void setSchoolClassIds(String schoolClassIds){
|
|
|
this.schoolClassIds = schoolClassIds;
|
|
|
}
|
|
|
|
|
|
/**签到方式 (数据字典 student_signin_type)
|
|
|
*@return
|
|
|
*/
|
|
|
public String getTeacherOpenCourseStudentSigninSettingType(){
|
|
|
return teacherOpenCourseStudentSigninSettingType;
|
|
|
}
|
|
|
/**签到方式 (数据字典 student_signin_type)
|
|
|
*@param teacherOpenCourseStudentSigninSettingType
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingType(String teacherOpenCourseStudentSigninSettingType){
|
|
|
this.teacherOpenCourseStudentSigninSettingType = teacherOpenCourseStudentSigninSettingType;
|
|
|
}
|
|
|
|
|
|
/**设置的值:数据例子:IP: x.x.x.x-x.x.x.x,验证码:xxxx,手动签到:无需设置
|
|
|
*@return
|
|
|
*/
|
|
|
public String getTeacherOpenCourseStudentSigninSettingValue(){
|
|
|
return teacherOpenCourseStudentSigninSettingValue;
|
|
|
}
|
|
|
/**设置的值:数据例子:IP: x.x.x.x-x.x.x.x,验证码:xxxx,手动签到:无需设置
|
|
|
*@param teacherOpenCourseStudentSigninSettingValue
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingValue(String teacherOpenCourseStudentSigninSettingValue){
|
|
|
this.teacherOpenCourseStudentSigninSettingValue = teacherOpenCourseStudentSigninSettingValue;
|
|
|
}
|
|
|
|
|
|
/**签到开始日期
|
|
|
*@return
|
|
|
*/
|
|
|
public Date getTeacherOpenCourseStudentSigninSettingStartTime(){
|
|
|
return teacherOpenCourseStudentSigninSettingStartTime;
|
|
|
}
|
|
|
/**签到开始日期
|
|
|
*@param teacherOpenCourseStudentSigninSettingStartTime
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingStartTime(Date teacherOpenCourseStudentSigninSettingStartTime){
|
|
|
this.teacherOpenCourseStudentSigninSettingStartTime = teacherOpenCourseStudentSigninSettingStartTime;
|
|
|
}
|
|
|
|
|
|
/**签到结束日期
|
|
|
*@return
|
|
|
*/
|
|
|
public Date getTeacherOpenCourseStudentSigninSettingEndTime(){
|
|
|
return teacherOpenCourseStudentSigninSettingEndTime;
|
|
|
}
|
|
|
/**签到结束日期
|
|
|
*@param teacherOpenCourseStudentSigninSettingEndTime
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingEndTime(Date teacherOpenCourseStudentSigninSettingEndTime){
|
|
|
this.teacherOpenCourseStudentSigninSettingEndTime = teacherOpenCourseStudentSigninSettingEndTime;
|
|
|
}
|
|
|
|
|
|
/**创建时间
|
|
|
*@return
|
|
|
*/
|
|
|
public Date getTeacherOpenCourseStudentSigninSettingAddTime(){
|
|
|
return teacherOpenCourseStudentSigninSettingAddTime;
|
|
|
}
|
|
|
/**创建时间
|
|
|
*@param teacherOpenCourseStudentSigninSettingAddTime
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingAddTime(Date teacherOpenCourseStudentSigninSettingAddTime){
|
|
|
this.teacherOpenCourseStudentSigninSettingAddTime = teacherOpenCourseStudentSigninSettingAddTime;
|
|
|
}
|
|
|
|
|
|
/**状态 1正常 2删除
|
|
|
*@return
|
|
|
*/
|
|
|
public Integer getTeacherOpenCourseStudentSigninSettingStatus(){
|
|
|
return teacherOpenCourseStudentSigninSettingStatus;
|
|
|
}
|
|
|
/**状态 1正常 2删除
|
|
|
*@param teacherOpenCourseStudentSigninSettingStatus
|
|
|
*/
|
|
|
public void setTeacherOpenCourseStudentSigninSettingStatus(Integer teacherOpenCourseStudentSigninSettingStatus){
|
|
|
this.teacherOpenCourseStudentSigninSettingStatus = teacherOpenCourseStudentSigninSettingStatus;
|
|
|
}
|
|
|
|
|
|
/**组织ID
|
|
|
*@return
|
|
|
*/
|
|
|
public Long getOrgId(){
|
|
|
return orgId;
|
|
|
}
|
|
|
/**组织ID
|
|
|
*@param orgId
|
|
|
*/
|
|
|
public void setOrgId(Long orgId){
|
|
|
this.orgId = orgId;
|
|
|
}
|
|
|
|
|
|
/**用户ID
|
|
|
*@return
|
|
|
*/
|
|
|
public Long getUserId(){
|
|
|
return userId;
|
|
|
}
|
|
|
/**用户ID
|
|
|
*@param userId
|
|
|
*/
|
|
|
public void setUserId(Long userId){
|
|
|
this.userId = userId;
|
|
|
}
|
|
|
|
|
|
|
|
|
public StartStatusEnum getTeacherOpenCourseStudentSigninSettingStartStatus() {
|
|
|
return teacherOpenCourseStudentSigninSettingStartStatus;
|
|
|
}
|
|
|
|
|
|
public void setTeacherOpenCourseStudentSigninSettingStartStatus(StartStatusEnum teacherOpenCourseStudentSigninSettingStartStatus) {
|
|
|
this.teacherOpenCourseStudentSigninSettingStartStatus = teacherOpenCourseStudentSigninSettingStartStatus;
|
|
|
}
|
|
|
}
|