Commit 6b9d1e70 by 朱亚洁

feat:[none]馆配

parent 61b0829c
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
p.scene_id p.scene_id
FROM FROM
resource_page p resource_page p
LEFT JOIN resource_page_item i ON p.id = i.resource_page_id
WHERE WHERE
p.book_id = #{bookId} p.book_id = #{bookId}
<if test="channelId != null"> <if test="channelId != null">
...@@ -100,9 +101,12 @@ ...@@ -100,9 +101,12 @@
<if test="adviserId != null"> <if test="adviserId != null">
AND p.create_user = #{adviserId} AND p.create_user = #{adviserId}
</if> </if>
GROUP BY
p.id
ORDER BY ORDER BY
p.open_rays DESC, p.open_rays DESC,
p.create_time DESC COUNT(i.id) DESC,
p.update_time DESC
LIMIT 1 LIMIT 1
</select> </select>
......
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