1、修复bug

beetlsql3-dev
wgf 2 years ago
parent 45436984e2
commit aefa0b60a5

@ -280,7 +280,7 @@ public class ResourcesQuestionController {
if (result.hasErrors()) {
return JsonResult.failMessage(result);
} else {
if (ObjectUtil.equals(resourcesQuestion.getSourceType(), 1)) {
if (ObjectUtil.equals(resourcesQuestion.getSourceType(), "1")) {
if (ObjectUtil.isEmpty(resourcesQuestion.getResourcesQuestionId())) {
return JsonResult.failMessage("更新失败");
}

@ -32,8 +32,14 @@ queryByCondition
@if(!isEmpty(teacherOpenCourseIdPlural)){
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
@}
@if(!isEmpty(schoolClassIds)){
and find_in_set(t.school_class_ids, #schoolClassIds#)
@if(!isEmpty( )){
and IF
( t.school_class_idsZ not null, TRUE,
@for(var classId in strUtil.split(schoolClassIds, ',')) {
find_in_set(#classId#, t.school_class_ids) or
@}
@// 用来拼接最后的or
false )
@}
@if(!isEmpty(teacherId)){
and t.teacher_id =#teacherId#

Loading…
Cancel
Save