cloud-server-course/src/main/resources/mapper/TCourseMapper.xml
@@ -16,4 +16,15 @@ </resultMap> <select id="queryCourseList" resultType="map"> select id, type, name, introduce, coverDrawing, state from t_course where state != 3 <if test="null != item.name and '' != item.name"> and name like CONCAT('%', #{item.name}, '%') </if> <if test="null != item.courseType"> and type = #{item.courseType} </if> order by insertTime desc </select> </mapper>