增加题目收藏夹;

增加题目收藏夹导出;
beetlsql3-dev
Mlxa0324 2 years ago
parent 53efb4a946
commit 93f12f7250

@ -363,3 +363,5 @@ ALTER TABLE teacher_open_course_merge_schedule_session ADD COLUMN teacher_open_c
-- 回显用 -- 回显用
ALTER TABLE resources_question_snapshot ADD COLUMN teacher_open_course_merge_resources_question_id bigint COMMENT '开课题目ID'; ALTER TABLE resources_question_snapshot ADD COLUMN teacher_open_course_merge_resources_question_id bigint COMMENT '开课题目ID';
ALTER TABLE teacher_open_course_question_log ADD COLUMN question_analysis varchar(1000) COMMENT '解析'; ALTER TABLE teacher_open_course_question_log ADD COLUMN question_analysis varchar(1000) COMMENT '解析';
ALTER TABLE teacher_open_course_question_log ADD COLUMN is_tuck int(2) default 0 COMMENT '是否收藏';

@ -28,7 +28,7 @@ public class CompetitionTaskOneQuestion extends BaseEntity{
private Long competitionStudentsId ; private Long competitionStudentsId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -126,13 +126,13 @@ public class CompetitionTaskOneQuestion extends BaseEntity{
this.competitionStudentsId = competitionStudentsId; this.competitionStudentsId = competitionStudentsId;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@return *@return
*/ */
public Integer getQuestionType(){ public Integer getQuestionType(){
return questionType; return questionType;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@param questionType *@param questionType
*/ */
public void setQuestionType(Integer questionType){ public void setQuestionType(Integer questionType){

@ -28,7 +28,7 @@ public class ExamTaskOneQuestion extends BaseEntity{
private Long examStudentsId ; private Long examStudentsId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -126,13 +126,13 @@ public class ExamTaskOneQuestion extends BaseEntity{
this.examStudentsId = examStudentsId; this.examStudentsId = examStudentsId;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@return *@return
*/ */
public Integer getQuestionType(){ public Integer getQuestionType(){
return questionType; return questionType;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@param questionType *@param questionType
*/ */
public void setQuestionType(Integer questionType){ public void setQuestionType(Integer questionType){

@ -24,7 +24,7 @@ public class ResourcesQuestion extends BaseEntity{
private Long courseInfoId ; private Long courseInfoId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -108,13 +108,13 @@ public class ResourcesQuestion extends BaseEntity{
this.courseInfoId = courseInfoId; this.courseInfoId = courseInfoId;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@return *@return
*/ */
public Integer getQuestionType(){ public Integer getQuestionType(){
return questionType; return questionType;
} }
/**(1 2 3) /**(1 2 3 4)
*@param questionType *@param questionType
*/ */
public void setQuestionType(Integer questionType){ public void setQuestionType(Integer questionType){

@ -33,7 +33,7 @@ public class ResourcesQuestionSnapshot extends BaseEntity{
//开课题目ID 回显用 //开课题目ID 回显用
private Long teacherOpenCourseMergeResourcesQuestionId ; private Long teacherOpenCourseMergeResourcesQuestionId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -115,13 +115,13 @@ public class ResourcesQuestionSnapshot extends BaseEntity{
this.teacherOpenCourseQuestionSettingId = teacherOpenCourseQuestionSettingId; this.teacherOpenCourseQuestionSettingId = teacherOpenCourseQuestionSettingId;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@return *@return
*/ */
public Integer getQuestionType(){ public Integer getQuestionType(){
return questionType; return questionType;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@param questionType *@param questionType
*/ */
public void setQuestionType(Integer questionType){ public void setQuestionType(Integer questionType){

@ -113,13 +113,13 @@ public class TeacherOpenCourseMergeResourcesQuestion extends BaseEntity{
this.teacherOpenCourseId = teacherOpenCourseId; this.teacherOpenCourseId = teacherOpenCourseId;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@return *@return
*/ */
public Integer getQuestionType(){ public Integer getQuestionType(){
return questionType; return questionType;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@param questionType *@param questionType
*/ */
public void setQuestionType(Integer questionType){ public void setQuestionType(Integer questionType){

@ -1,10 +1,13 @@
package com.ibeetl.jlw.entity; package com.ibeetl.jlw.entity;
import cn.hutool.core.util.EnumUtil;
import com.ibeetl.admin.core.annotation.Dict; import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity; import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig; import com.ibeetl.admin.core.util.ValidateConfig;
import com.ibeetl.jlw.enums.ResourcesQuestionTypeEnum;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.ObjectUtils;
import org.beetl.sql.annotation.entity.AssignID; import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.fetch.annotation.Fetch; import org.beetl.sql.fetch.annotation.Fetch;
@ -67,7 +70,7 @@ public class TeacherOpenCourseQuestionLog extends BaseEntity{
private Long courseInfoId ; private Long courseInfoId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -107,6 +110,10 @@ public class TeacherOpenCourseQuestionLog extends BaseEntity{
private String questionAnalysis ; private String questionAnalysis ;
//是否收藏
private Boolean isTuck ;
//组织ID //组织ID
private Long orgId ; private Long orgId ;
@ -115,4 +122,10 @@ public class TeacherOpenCourseQuestionLog extends BaseEntity{
private Long userId ; private Long userId ;
public void setQuestionType(Integer questionType) {
this.questionType = questionType;
if (ObjectUtils.isNotEmpty(questionType)) {
this.set("questionTypeText", EnumUtil.likeValueOf(ResourcesQuestionTypeEnum.class, questionType).getText());
}
}
} }

@ -51,7 +51,7 @@ public class TeacherOpenCourseQuestionLogWrong extends BaseEntity{
private Long studentId ; private Long studentId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -202,13 +202,13 @@ public class TeacherOpenCourseQuestionLogWrong extends BaseEntity{
this.studentId = studentId; this.studentId = studentId;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@return *@return
*/ */
public Integer getQuestionType(){ public Integer getQuestionType(){
return questionType; return questionType;
} }
/**(1 2 3) /**(1 2 3 4 5)
*@param questionType *@param questionType
*/ */
public void setQuestionType(Integer questionType){ public void setQuestionType(Integer questionType){

@ -1,5 +1,6 @@
package com.ibeetl.jlw.entity.vo; package com.ibeetl.jlw.entity.vo;
import com.ibeetl.admin.core.entity.BaseEntity;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -10,7 +11,7 @@ import lombok.EqualsAndHashCode;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper=false)
public class TeacherOpenCourseQuestionTestSimpleInfoVO { public class TeacherOpenCourseQuestionTestSimpleInfoVO extends BaseEntity {
//开课题目配置ID //开课题目配置ID

@ -36,6 +36,8 @@ import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
import static cn.hutool.core.util.ArrayUtil.join; import static cn.hutool.core.util.ArrayUtil.join;
import static com.ibeetl.admin.core.util.user.CacheUserUtil.getUserId; import static com.ibeetl.admin.core.util.user.CacheUserUtil.getUserId;
@ -462,4 +464,22 @@ public class TeacherOpenCourseQuestionLogService extends CoreBaseService<Teacher
public void deleteTeacherOpenCourseAllRelatedByTeacherOpenCourseId(@NotNull(message = "开课ID不能为空") Long teacherOpenCourseId) { public void deleteTeacherOpenCourseAllRelatedByTeacherOpenCourseId(@NotNull(message = "开课ID不能为空") Long teacherOpenCourseId) {
log.info("需要实现删除操作!"); log.info("需要实现删除操作!");
} }
/**
*
* @param teacherOpenCourseQuestionLogIds
*/
public void tuck(@NotEmpty(message = "题目日志ID不能为空") String teacherOpenCourseQuestionLogIds, final boolean isTuck) {
Function<String, TeacherOpenCourseQuestionLog> stringTeacherOpenCourseQuestionLogFunction = logId -> {
TeacherOpenCourseQuestionLog questionLog = new TeacherOpenCourseQuestionLog();
questionLog.setTeacherOpenCourseQuestionLogId(Long.valueOf(logId));
questionLog.setIsTuck(isTuck);
return questionLog;
};
List<TeacherOpenCourseQuestionLog> logSet = Arrays.asList(teacherOpenCourseQuestionLogIds.split(",")).stream()
.map(stringTeacherOpenCourseQuestionLogFunction).collect(Collectors.toList());
updateBatchTemplate(logSet);
}
} }

@ -1,16 +1,21 @@
package com.ibeetl.jlw.web; package com.ibeetl.jlw.web;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Assert; import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.StrUtil;
import cn.jlw.Interceptor.SCoreUser; import cn.jlw.Interceptor.SCoreUser;
import cn.jlw.validate.ValidateConfig; import cn.jlw.validate.ValidateConfig;
import com.ibeetl.admin.core.annotation.Function; import com.ibeetl.admin.core.annotation.Function;
import com.ibeetl.admin.core.entity.CoreUser; import com.ibeetl.admin.core.entity.CoreUser;
import com.ibeetl.admin.core.file.FileService; import com.ibeetl.admin.core.file.FileService;
import com.ibeetl.admin.core.util.BeanCopyUtil;
import com.ibeetl.admin.core.web.JsonResult; import com.ibeetl.admin.core.web.JsonResult;
import com.ibeetl.admin.core.web.query.PageParam;
import com.ibeetl.jlw.entity.Student; import com.ibeetl.jlw.entity.Student;
import com.ibeetl.jlw.entity.TeacherOpenCourseQuestionLog; import com.ibeetl.jlw.entity.TeacherOpenCourseQuestionLog;
import com.ibeetl.jlw.service.TeacherOpenCourseQuestionLogService; import com.ibeetl.jlw.service.TeacherOpenCourseQuestionLogService;
import com.ibeetl.jlw.web.query.TeacherOpenCourseQuestionLogQuery; import com.ibeetl.jlw.web.query.TeacherOpenCourseQuestionLogQuery;
import lombok.SneakyThrows;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -21,13 +26,18 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.TreeSet; import java.util.TreeSet;
import static cn.jlw.util.CacheUserUtil.getStudent; import static cn.jlw.util.CacheUserUtil.getStudent;
import static com.ibeetl.admin.core.util.ExcelUtil.convertData;
import static com.ibeetl.admin.core.util.ExcelUtil.write;
import static com.ibeetl.admin.core.util.user.CacheUserUtil.getUser;
/** /**
* -- * --
@ -177,6 +187,71 @@ public class TeacherOpenCourseQuestionLogController {
return JsonResult.success(page); return JsonResult.success(page);
} }
/**
* /
* @param teacherOpenCourseQuestionLogIds ID
* @param isTuck true, false
* @return
*/
@PostMapping(API + "/tuck.do")
public JsonResult tuck(String teacherOpenCourseQuestionLogIds, boolean isTuck) {
teacherOpenCourseQuestionLogService.tuck(teacherOpenCourseQuestionLogIds, isTuck);
return JsonResult.success();
}
/**
*
* @return
*/
@GetMapping(API + "/tuckList.do")
public JsonResult tuckList(PageParam pageParam) {
Student student = getStudent();
Assert.notNull(student, "非学生身份,无法获取题目分析!");
PageQuery query = new PageQuery(pageParam.getPage().longValue(), pageParam.getLimit().longValue());
query.setPara("studentId", student.getStudentId());
query.setPara("teacherOpenCourseQuestionLogStatus", 1);
return JsonResult.success(teacherOpenCourseQuestionLogService.queryByConditionQuery(query));
}
/**
* -
* @param condition
* @return
*/
@SneakyThrows
@PostMapping(API + "/export.do")
public void tuckExport(HttpServletResponse resp, TeacherOpenCourseQuestionLogQuery condition) {
Assert.notNull(getUser(), "请登录后再操作");
/** 构建表头 */
Map<String, String> header = new LinkedHashMap<>(11);
header.put("teacherOpenCourseQuestionSettingIdText", "开课题目名称");
header.put("questionStem", "题干");
header.put("questionTypeText", "题型");
header.put("questionScore", "题目分值");
header.put("questionOptionA", "选项A");
header.put("questionOptionB", "选项B");
header.put("questionOptionC", "选项C");
header.put("questionOptionD", "选项D");
header.put("questionOptionE", "选项E");
header.put("questionAnswer", "答案");
header.put("questionAnalysis", "解析");
// 当前导出的是学生的话,那么只导出他自己的
Student student = getStudent();
if (student != null) {
condition.setStudentId(student.getStudentId());
}
List<TeacherOpenCourseQuestionLog> datas =
teacherOpenCourseQuestionLogService.getValuesByQueryNotWithPermission(condition);
List<Map<String, Object>> maps = BeanCopyUtil.baseEntity2MapWithParallel(datas);
String filename = StrUtil.format("题目收藏-导出 {}.xlsx", DateUtil.formatDate(DateUtil.date()));
write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}
/* 后台页面 */ /* 后台页面 */
@ -292,12 +367,4 @@ public class TeacherOpenCourseQuestionLogController {
teacherOpenCourseQuestionLogService.deleteTeacherOpenCourseQuestionLog(ids); teacherOpenCourseQuestionLogService.deleteTeacherOpenCourseQuestionLog(ids);
return JsonResult.success(); return JsonResult.success();
} }
/**
* --
* {@link #list(TeacherOpenCourseQuestionLogQuery condition)}
* @param condition ID
* @return
*/
} }

@ -1,14 +1,10 @@
package com.ibeetl.jlw.web.query; package com.ibeetl.jlw.web.query;
import com.ibeetl.jlw.entity.CompetitionTaskOneQuestion;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.annotation.Query; import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
import com.ibeetl.jlw.entity.CompetitionTaskOneQuestion;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/** /**
*CompetitionTaskOneQuestion *CompetitionTaskOneQuestion
@ -20,7 +16,7 @@ public class CompetitionTaskOneQuestionQuery extends PageParam {
private Long competitionId; private Long competitionId;
@Query(name = "参赛学生ID", display = true) @Query(name = "参赛学生ID", display = true)
private Long competitionStudentsId; private Long competitionStudentsId;
@Query(name = "题型(1单选 2多选 3判断)", display = true) @Query(name = "题型(1单选 2多选 3判断 4填空 5分析)", display = true)
private Integer questionType; private Integer questionType;
@Query(name = "分值", display = true) @Query(name = "分值", display = true)
private BigDecimal questionScore; private BigDecimal questionScore;

@ -1,14 +1,10 @@
package com.ibeetl.jlw.web.query; package com.ibeetl.jlw.web.query;
import com.ibeetl.jlw.entity.ExamTaskOneQuestion;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.annotation.Query; import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
import com.ibeetl.jlw.entity.ExamTaskOneQuestion;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/** /**
*ExamTaskOneQuestion *ExamTaskOneQuestion
@ -20,7 +16,7 @@ public class ExamTaskOneQuestionQuery extends PageParam {
private Long examId; private Long examId;
@Query(name = "参考学生ID", display = true) @Query(name = "参考学生ID", display = true)
private Long examStudentsId; private Long examStudentsId;
@Query(name = "题型(1单选 2多选 3判断)", display = true) @Query(name = "题型(1单选 2多选 3判断 4填空 5分析)", display = true)
private Integer questionType; private Integer questionType;
@Query(name = "分值", display = true) @Query(name = "分值", display = true)
private BigDecimal questionScore; private BigDecimal questionScore;

@ -17,7 +17,7 @@ public class ResourcesQuestionQuery extends PageParam {
private Long resourcesQuestionId; private Long resourcesQuestionId;
@Query(name = "课程ID", display = false) @Query(name = "课程ID", display = false)
private Long courseInfoId; private Long courseInfoId;
@Query(name = "题型(1单选 2多选 3判断)", display = false) @Query(name = "题型(1单选 2多选 3判断 4填空 5分析)", display = false)
private Integer questionType; private Integer questionType;
@Query(name = "分值", display = false) @Query(name = "分值", display = false)
private BigDecimal questionScore; private BigDecimal questionScore;

@ -25,7 +25,7 @@ public class ResourcesQuestionSnapshotQuery extends PageParam {
private Long teacherOpenCourseMergeCourseInfoId; private Long teacherOpenCourseMergeCourseInfoId;
@Query(name = "开课题目ID", display = false) @Query(name = "开课题目ID", display = false)
private Long teacherOpenCourseMergeResourcesQuestionId; private Long teacherOpenCourseMergeResourcesQuestionId;
@Query(name = "题型(1单选 2多选 3判断)", display = false) @Query(name = "题型(1单选 2多选 3判断 4填空 5分析)", display = false)
private Integer questionType; private Integer questionType;
@Query(name = "分值", display = false) @Query(name = "分值", display = false)
private BigDecimal questionScore; private BigDecimal questionScore;

@ -48,7 +48,7 @@ public class TeacherOpenCourseQuestionLogQuery extends PageParam {
private Long courseInfoId ; private Long courseInfoId ;
//题型(1单选 2多选 3判断) //题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ; private Integer questionType ;
@ -88,6 +88,10 @@ public class TeacherOpenCourseQuestionLogQuery extends PageParam {
private String questionAnalysis ; private String questionAnalysis ;
//是否收藏
private Boolean isTuck ;
private String teacherOpenCourseQuestionLogIdPlural; private String teacherOpenCourseQuestionLogIdPlural;
private String teacherOpenCourseQuestionSettingIdPlural; private String teacherOpenCourseQuestionSettingIdPlural;
private String resourcesQuestionSnapshotIdPlural; private String resourcesQuestionSnapshotIdPlural;
@ -125,6 +129,7 @@ public class TeacherOpenCourseQuestionLogQuery extends PageParam {
pojo.setQuestionOptionE(this.getQuestionOptionE()); pojo.setQuestionOptionE(this.getQuestionOptionE());
pojo.setQuestionAnswer(this.getQuestionAnswer()); pojo.setQuestionAnswer(this.getQuestionAnswer());
pojo.setQuestionAnalysis(this.getQuestionAnalysis()); pojo.setQuestionAnalysis(this.getQuestionAnalysis());
pojo.setIsTuck(this.getIsTuck());
return pojo; return pojo;
} }

@ -30,7 +30,7 @@ public class TeacherOpenCourseQuestionLogWrongQuery extends PageParam {
private Integer teacherOpenCourseQuestionLogStatus; private Integer teacherOpenCourseQuestionLogStatus;
@Query(name = "学生ID", display = false) @Query(name = "学生ID", display = false)
private Long studentId; private Long studentId;
@Query(name = "题型(1单选 2多选 3判断)", display = false) @Query(name = "题型(1单选 2多选 3判断 4填空 5分析)", display = false)
private Integer questionType; private Integer questionType;
@Query(name = "分值", display = false) @Query(name = "分值", display = false)
private BigDecimal questionScore; private BigDecimal questionScore;

@ -84,6 +84,9 @@ queryByCondition
@if(!isEmpty(questionAnswer)){ @if(!isEmpty(questionAnswer)){
and t.question_answer =#questionAnswer# and t.question_answer =#questionAnswer#
@} @}
@if(!isEmpty(isTuck)){
and t.is_tuck =#isTuck#
@}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#
@} @}
@ -182,6 +185,9 @@ queryByConditionQuery
@if(!isEmpty(questionAnswer)){ @if(!isEmpty(questionAnswer)){
and t.question_answer =#questionAnswer# and t.question_answer =#questionAnswer#
@} @}
@if(!isEmpty(isTuck)){
and t.is_tuck =#isTuck#
@}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#
@} @}
@ -288,6 +294,9 @@ studentScoreList
@if(!isEmpty(questionAnswer)){ @if(!isEmpty(questionAnswer)){
and t.question_answer =#questionAnswer# and t.question_answer =#questionAnswer#
@} @}
@if(!isEmpty(isTuck)){
and t.is_tuck =#isTuck#
@}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#
@} @}
@ -402,6 +411,13 @@ updateGivenByIds
student_id = #studentId# , student_id = #studentId# ,
@} @}
@} @}
@if(contain("isTuck",_given)){
@if(isEmpty(isTick)){
is_tuck = null ,
@}else{
is_tuck = #isTuck# ,
@}
@}
@if(contain("orgId",_given)){ @if(contain("orgId",_given)){
@if(isEmpty(orgId)){ @if(isEmpty(orgId)){
org_id = null , org_id = null ,
@ -455,6 +471,9 @@ getTeacherOpenCourseQuestionLogValues
@if(!isEmpty(studentId)){ @if(!isEmpty(studentId)){
and t.student_id =#studentId# and t.student_id =#studentId#
@} @}
@if(!isEmpty(isTuck)){
and t.is_tuck =#isTuck#
@}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#
@} @}
@ -513,6 +532,9 @@ getValuesByQuery
@if(!isEmpty(studentIdPlural)){ @if(!isEmpty(studentIdPlural)){
and find_in_set(t.student_id,#studentIdPlural#) and find_in_set(t.student_id,#studentIdPlural#)
@} @}
@if(!isEmpty(isTuck)){
and t.is_tuck =#isTuck#
@}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#
@} @}
@ -577,6 +599,9 @@ getValuesByQueryNotWithPermission
@if(!isEmpty(studentIdPlural)){ @if(!isEmpty(studentIdPlural)){
and find_in_set(t.student_id,#studentIdPlural#) and find_in_set(t.student_id,#studentIdPlural#)
@} @}
@if(!isEmpty(isTuck)){
and t.is_tuck =#isTuck#
@}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#
@} @}

Loading…
Cancel
Save