Commit 47e6c123 by 朱亚洁

bug:[1028403]资源查询

parent 6b28a2ad
...@@ -256,5 +256,5 @@ public interface RightsSettingBiz { ...@@ -256,5 +256,5 @@ public interface RightsSettingBiz {
* @date:2021/2/19 17:42 * @date:2021/2/19 17:42
* * @param null * * @param null
*/ */
List<BookServeDTO> getRightsSettingAppProduct(Long bookId, Long channelId, Long adviserId, Integer limit); List<BookServeDTO> getRightsSettingAppProduct(Long bookId, Long channelId, Long adviserId, Integer limit);
} }
...@@ -342,17 +342,21 @@ ...@@ -342,17 +342,21 @@
<select id="getServeItemsByServeTypes" parameterType="map" resultType="com.pcloud.book.group.dto.BookServeDTO"> <select id="getServeItemsByServeTypes" parameterType="map" resultType="com.pcloud.book.group.dto.BookServeDTO">
SELECT SELECT
serve_id serveId, i.serve_id serveId,
serve_type serveType, i.serve_type serveType,
link_url url i.link_url url
FROM FROM
rights_now_item rights_now_item i
LEFT JOIN rights_setting_title t ON i.rights_setting_title_id = t.id
WHERE WHERE
rights_setting_id = #{rightsSettingId} i.rights_setting_id = #{rightsSettingId}
AND serve_type IN AND i.serve_type IN
<foreach collection="serveTypes" open="(" close=")" item="item" index="index" separator=","> <foreach collection="serveTypes" open="(" close=")" item="item" index="index" separator=",">
#{item} #{item}
</foreach> </foreach>
AND t.open_state = 1
GROUP BY
i.serve_id
<if test="limit > 0"> <if test="limit > 0">
LIMIT #{limit} LIMIT #{limit}
</if> </if>
......
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