소스 검색

流业务层

he2802 4 년 전
부모
커밋
5ebb59cea0
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      zhongzheng-system/src/main/resources/mapper/modules/course/CourseChapterMapper.xml

+ 6 - 3
zhongzheng-system/src/main/resources/mapper/modules/course/CourseChapterMapper.xml

@@ -93,13 +93,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND c.publish_status = #{publishStatus}
         </if>
         <if test="educationTypeId != null and educationTypeId != ''">
-            AND csb.education_type_id = #{educationTypeId}
+            AND ccb.education_type_id = #{educationTypeId}
         </if>
         <if test="subjectId != null and subjectId != ''">
-            AND csb.subject_id = #{subjectId}
+            AND ccb.subject_id = #{subjectId}
         </if>
         <if test="businessId != null and businessId != ''">
-            AND csb.business_id = #{businessId}
+            AND ccb.business_id = #{businessId}
+        </if>
+        <if test="name != null and name != ''">
+            AND c.name like concat('%', #{name}, '%')
         </if>
    </select>
 </mapper>