小程序点歌 新增获取正在演唱歌曲接口

This commit is contained in:
2024-07-12 15:46:47 +08:00
parent 41c264d325
commit a25e86fcc0
4 changed files with 26 additions and 3 deletions

View File

@@ -64,6 +64,6 @@ public interface TbShopSongOrderMapper {
" a.open_id = #{openId} and a.state in (1, 2, 3)")
List<Map<String, Object>> selectActiveOrderByUserId(@Param("openId") String openId);
@Select("SELECT song_name, id FROM `tb_shop_song_order` where open_id=#{openId} and state=2 limit 1")
@Select("SELECT a.song_name songName, a.id, b.img FROM `tb_shop_song_order` as a left join tb_shop_song as b on a.song_id=b.id where open_id=#{openId} and state=2 limit 1")
Map<String, Object> selectSinging(@Param("openId") String openId);
}