推荐音乐增加reId
This commit is contained in:
@@ -155,7 +155,9 @@ public class MusicController extends BaseController {
|
|||||||
@RequestParam(required = false) String currentMusicId){
|
@RequestParam(required = false) String currentMusicId){
|
||||||
Long userId = SecurityUtils.getUserId();
|
Long userId = SecurityUtils.getUserId();
|
||||||
String nextMusicId = musicService.getNextMusicId(userId, playMode, playlistType, categoryId, collectId, reId,currentMusicId);
|
String nextMusicId = musicService.getNextMusicId(userId, playMode, playlistType, categoryId, collectId, reId,currentMusicId);
|
||||||
return AjaxResult.success("请求成功",nextMusicId);
|
Map<String,Object> result = new HashMap<>();
|
||||||
|
result.put("musicId",nextMusicId);
|
||||||
|
return AjaxResult.success("请求成功",result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -76,4 +76,6 @@ public class MusicInfo extends BaseEntity
|
|||||||
|
|
||||||
private String fileType;
|
private String fileType;
|
||||||
|
|
||||||
|
private String recommendId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="isDel" column="is_del" />
|
<result property="isDel" column="is_del" />
|
||||||
<result property="label" column="label" />
|
<result property="label" column="label" />
|
||||||
<result property="fileType" column="file_type"/>
|
<result property="fileType" column="file_type"/>
|
||||||
|
<result property="recommendId" column="recommend_id"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectMusicInfoVo">
|
<sql id="selectMusicInfoVo">
|
||||||
@@ -139,7 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectRecommendMusic" resultMap="MusicInfoResult">
|
<select id="selectRecommendMusic" resultMap="MusicInfoResult">
|
||||||
SELECT mi.* FROM music_recommend mr LEFT JOIN music_info mi on mr.music_id = mi.music_id and mi.is_del=0
|
SELECT mi.*,mr.recommend_id FROM music_recommend mr LEFT JOIN music_info mi on mr.music_id = mi.music_id and mi.is_del=0
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMusicByCollectId" resultMap="MusicInfoResult">
|
<select id="selectMusicByCollectId" resultMap="MusicInfoResult">
|
||||||
|
|||||||
Reference in New Issue
Block a user