@@ -30,9 +30,8 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
...
@@ -30,9 +30,8 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"left join b_lesson_direction bld on bld.lession_id = b.business_id "+
"left join b_lesson_direction bld on bld.lession_id = b.business_id "+
"left join b_direction bd on bd.business_id = bld.direction_id "+
"left join b_direction bd on bd.business_id = bld.direction_id "+
"where b.del_flag != 1 and b.flag = 1 "+
"where b.del_flag != 1 and b.flag = 1 "+
"<if test=\"lessonName!=null and lessonName != ''\">and b.`lesson_name` LIKE CONCAT('%',#{lessonName},'%') </if>"+
"<if test=\"directionId!=null and directionId != ''\">and bld.direction_id = #{directionId} </if>"+
"<if test=\"directionId!=null and directionId != ''\">and bld.direction_id = #{directionId} </if>"+
"<if test=\"code!=null and code != ''\">and b.`code` LIKE CONCAT('%',#{code},'%') </if></script>")
"<if test=\"condition!=null and condition != ''\">and b.`code` LIKE CONCAT('%',#{condition},'%') or b.lesson_name LIKE CONCAT('%',#{condition},'%') </if></script>")
+"<if test=\"classroomName !=null and classroomName != '' \">and classroom_name like concat(concat(\"%\",#{classroomName}),\"%\") </if> "
+"<if test=\"condition !=null and condition != '' \">and classroom_name like concat(concat(\"%\",#{condition}),\"%\") or code like concat(concat(\"%\",#{condition}),\"%\") </if> "
+"<if test=\"code !=null and code != '' \">and code like concat(concat(\"%\",#{code}),\"%\") </if> "
@@ -26,11 +26,10 @@ public interface BTeacherRepository extends BaseMapper<BTeacher> {
...
@@ -26,11 +26,10 @@ public interface BTeacherRepository extends BaseMapper<BTeacher> {
"LEFT JOIN s_user u ON b.`code` = u.login_name\n"+
"LEFT JOIN s_user u ON b.`code` = u.login_name\n"+
"LEFT JOIN b_agency ba ON b.agency_code = ba.`code`\n"+
"LEFT JOIN b_agency ba ON b.agency_code = ba.`code`\n"+
"where b.del_flag != 1"+
"where b.del_flag != 1"+
"<if test=\"name!=null\">and u.`name` like #{name}</if>"+
"<if test=\"condition != null and condition != ''\">and u.`name` like CONCAT('%',#{condition},'%') or b.`code` like CONCAT('%',#{condition},'%')</if>"+
"<if test=\"code!=null\">and b.`code` like #{code}</if>"+