瀏覽代碼

課程搜索

change 4 年之前
父節點
當前提交
e28f5774ec
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

+ 12 - 0
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -96,6 +96,18 @@
         <if test="prefixName != null and prefixName != ''">
             AND c.prefix_name like concat('%', #{prefixName}, '%')
         </if>
+        <if test="courseName != null and courseName != ''">
+            AND c.course_name like concat('%', #{courseName}, '%')
+        </if>
+        <if test="publishStatus != null and publishStatus != ''">
+            AND c.publish_status = #{publishStatus}
+        </if>
+        <if test="schoolId != null and schoolId != ''">
+            AND c.school_id = #{schoolId}
+        </if>
+        <if test="majorId != null and majorId != ''">
+            AND c.major_id = #{majorId}
+        </if>
     </select>
 
     <select id="selectDetailById" parameterType="Long"  resultMap="CourseResultVo">