Commit 375f6d53 authored by wzp's avatar wzp

修改appbug

parent bbef4627
......@@ -32,14 +32,13 @@
<select id="getList" resultMap="BaseResultMap">
SELECT distinct a.name,a.cover from
( select e.name,e.cover,lb.sortorder,e.create_time
select e.name,e.cover,lb.sortorder,e.create_time
from exhibition_board e
left join learning_content_board lb on lb.exhibition_board_id = e.id
left join learning_content lc on lb.learning_content_id = lc.id and lc.is_deleted = 0
left join learning_project p on lc.learning_project_id = p.id
where e.is_published = #{isPublished} and p.id = #{learningProjectId}
order by lb.sortorder,e.create_time DESC)a
where e.is_published = #{isPublished} and p.id = #{learningProjectId} and e.is_deleted = 0 and lc.is_deleted = 0 and lc.is_published = 1
order by lb.sortorder desc,e.create_time DESC
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment