推荐部分
This commit is contained in:
@@ -82,7 +82,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectCategoryList" resultType="com.ruoyi.common.core.domain.entity.CategoryInfo">
|
||||
<select id="selectCategoryList" resultMap="CategoryInfoResult">
|
||||
<include refid="selectCategoryInfoVo" /> where is_del = 0
|
||||
</select>
|
||||
|
||||
<insert id="bindMusic">
|
||||
insert into music_category(music_id,category_id) values
|
||||
<foreach item="id" collection="ids" separator=",">
|
||||
(#{id},#{categoryId})
|
||||
</foreach>
|
||||
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -116,4 +116,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectByCate" resultType="com.ruoyi.common.core.domain.entity.MusicInfo">
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectMusicInfoByCid" resultMap="MusicInfoResult">
|
||||
SELECT m.* FROM music_category mc left JOIN music_info m on mc.music_id = m.music_id WHERE mc.category_id = #{categoryId} and m.shelf=1 and m.is_del=0
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -83,4 +83,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="bindMusic">
|
||||
insert into music_recommend(recommend_id,music_id) values
|
||||
<foreach item="id" collection="musicIds" separator=",">
|
||||
(#{id},#{reId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="selectMusicRecommend" resultMap="RecommendInfoResult">
|
||||
SELECT ri.* FROM music_recommend mr LEFT JOIN recommend_info ri on mr.recommend_id = ri.id and ri.is_del=0
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user